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

Method WriteData

go/fory/primitive.go:676–679  ·  view source on GitHub ↗
(ctx *WriteContext, value reflect.Value)

Source from the content-addressed store, hash-verified

674var globalBFloat16Serializer = bfloat16Serializer{}
675
676func (s bfloat16Serializer) WriteData(ctx *WriteContext, value reflect.Value) {
677 // Value is effectively uint16 (alias)
678 ctx.buffer.WriteUint16(uint16(value.Uint()))
679}
680
681func (s bfloat16Serializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
682 if refMode != RefModeNone {

Callers 1

WriteMethod · 0.95

Calls 2

WriteUint16Method · 0.80
uint16Function · 0.50

Tested by

no test coverage detected