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

Method WriteData

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

Source from the content-addressed store, hash-verified

524var globalFloat32Serializer = float32Serializer{}
525
526func (s float32Serializer) WriteData(ctx *WriteContext, value reflect.Value) {
527 ctx.buffer.WriteFloat32(float32(value.Float()))
528}
529
530func (s float32Serializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
531 if refMode != RefModeNone {

Callers 1

WriteMethod · 0.95

Calls 2

float32Function · 0.50
WriteFloat32Method · 0.45

Tested by

no test coverage detected