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

Method WriteData

go/fory/slice_primitive.go:420–422  ·  view source on GitHub ↗
(ctx *WriteContext, value reflect.Value)

Source from the content-addressed store, hash-verified

418type float32SliceSerializer struct{}
419
420func (s float32SliceSerializer) WriteData(ctx *WriteContext, value reflect.Value) {
421 WriteFloat32Slice(ctx.Buffer(), value.Interface().([]float32))
422}
423
424func (s float32SliceSerializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
425 done := writeSliceRefAndType(ctx, refMode, writeType, value, FLOAT32_ARRAY)

Callers 1

WriteMethod · 0.95

Calls 2

WriteFloat32SliceFunction · 0.85
BufferMethod · 0.45

Tested by

no test coverage detected