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

Method WriteData

go/fory/array.go:304–308  ·  view source on GitHub ↗
(ctx *WriteContext, value reflect.Value)

Source from the content-addressed store, hash-verified

302}
303
304func (s arrayDynSerializer) WriteData(ctx *WriteContext, value reflect.Value) {
305 // Convert array to slice and forward to sliceDynSerializer
306 slice := value.Slice(0, value.Len())
307 s.sliceSerializer.WriteData(ctx, slice)
308}
309
310func (s arrayDynSerializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
311 writeArrayRefAndType(ctx, refMode, writeType, value, LIST)

Callers 1

WriteMethod · 0.95

Calls 3

SliceMethod · 0.80
LenMethod · 0.80
WriteDataMethod · 0.65

Tested by

no test coverage detected