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

Method WriteUint16

go/fory/buffer.go:216–220  ·  view source on GitHub ↗
(value uint16)

Source from the content-addressed store, hash-verified

214}
215
216func (b *ByteBuffer) WriteUint16(value uint16) {
217 b.grow(2)
218 binary.LittleEndian.PutUint16(b.data[b.writerIndex:], value)
219 b.writerIndex += 2
220}
221
222func (b *ByteBuffer) WriteInt16(value int16) {
223 b.grow(2)

Callers 10

WriteDataMethod · 0.80
WriteDataMethod · 0.80
WriteDataMethod · 0.80
WriteDataMethod · 0.80
WriteDataMethod · 0.80
writeRemainingFieldMethod · 0.80
writeOptionFastFunction · 0.80
WriteDataMethod · 0.80
WriteDataMethod · 0.80
writeFastMethod · 0.80

Calls 1

growMethod · 0.95

Tested by

no test coverage detected