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

Method Write

go/fory/primitive.go:356–364  ·  view source on GitHub ↗
(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value)

Source from the content-addressed store, hash-verified

354}
355
356func (s int16Serializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
357 if refMode != RefModeNone {
358 ctx.buffer.WriteInt8(NotNullValueFlag)
359 }
360 if writeType {
361 ctx.buffer.WriteUint8(uint8(INT16))
362 }
363 s.WriteData(ctx, value)
364}
365
366func (s int16Serializer) ReadData(ctx *ReadContext, value reflect.Value) {
367 err := ctx.Err()

Callers

nothing calls this directly

Calls 4

WriteDataMethod · 0.95
WriteUint8Method · 0.80
uint8Function · 0.50
WriteInt8Method · 0.45

Tested by

no test coverage detected