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

Method WriteInt16

go/fory/buffer.go:222–226  ·  view source on GitHub ↗
(value int16)

Source from the content-addressed store, hash-verified

220}
221
222func (b *ByteBuffer) WriteInt16(value int16) {
223 b.grow(2)
224 binary.LittleEndian.PutUint16(b.data[b.writerIndex:], uint16(value))
225 b.writerIndex += 2
226}
227
228func (b *ByteBuffer) WriteUint32(value uint32) {
229 b.grow(4)

Callers 14

testBufferFunction · 0.95
WriteInt16SliceFunction · 0.45
WriteUint16SliceFunction · 0.45
writeChunkMethod · 0.45
WriteDataMethod · 0.45
writeRemainingFieldMethod · 0.45
writeOptionFastFunction · 0.45
SerializeFunction · 0.45
writeInt16ListValuesFunction · 0.45
writeUint16ListValuesFunction · 0.45
WriteDataMethod · 0.45
WriteDataMethod · 0.45

Calls 2

growMethod · 0.95
uint16Function · 0.50

Tested by

no test coverage detected