MCPcopy Create free account
hub / github.com/apache/fory / WriteInt32

Method WriteInt32

go/fory/buffer.go:234–238  ·  view source on GitHub ↗
(value int32)

Source from the content-addressed store, hash-verified

232}
233
234func (b *ByteBuffer) WriteInt32(value int32) {
235 b.grow(4)
236 binary.LittleEndian.PutUint32(b.data[b.writerIndex:], uint32(value))
237 b.writerIndex += 4
238}
239
240func (b *ByteBuffer) WriteLength(value int) {
241 b.grow(4)

Callers 15

WriteTaggedInt64Method · 0.95
WriteTaggedUint64Method · 0.95
testBufferFunction · 0.95
WriteInt32SliceFunction · 0.45
WriteUint32SliceFunction · 0.45
WriteIntSliceFunction · 0.45
WriteUintSliceFunction · 0.45
WriteDataMethod · 0.45
WriteDataMethod · 0.45
WriteDataMethod · 0.45

Calls 2

growMethod · 0.95
uint32Function · 0.50

Tested by 2

WriteDataMethod · 0.36