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

Method Write

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

Source from the content-addressed store, hash-verified

624}
625
626func (s float16Serializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
627 if refMode != RefModeNone {
628 ctx.buffer.WriteInt8(NotNullValueFlag)
629 }
630 if writeType {
631 ctx.buffer.WriteUint8(uint8(FLOAT16))
632 }
633 s.WriteData(ctx, value)
634}
635
636func (s float16Serializer) ReadData(ctx *ReadContext, value reflect.Value) {
637 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