MCPcopy Create free account
hub / github.com/apache/iotdb-client-go / int32ToBytes

Function int32ToBytes

client/utils.go:173–177  ·  view source on GitHub ↗
(n int32)

Source from the content-addressed store, hash-verified

171}
172
173func int32ToBytes(n int32) []byte {
174 bytesBuffer := bytes.NewBuffer([]byte{})
175 binary.Write(bytesBuffer, binary.BigEndian, n)
176 return bytesBuffer.Bytes()
177}
178
179func int64ToBytes(n int64) []byte {
180 bytesBuffer := bytes.NewBuffer([]byte{})

Callers 1

Test_bytesToInt32Function · 0.85

Calls 1

WriteMethod · 0.45

Tested by 1

Test_bytesToInt32Function · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…