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

Method Write

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

Source from the content-addressed store, hash-verified

308}
309
310func (s arrayDynSerializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
311 writeArrayRefAndType(ctx, refMode, writeType, value, LIST)
312 if ctx.HasError() {
313 return
314 }
315 s.WriteData(ctx, value)
316}
317
318func (s arrayDynSerializer) ReadData(ctx *ReadContext, value reflect.Value) {
319 // Create a temp slice to read into, then copy back to array

Callers

nothing calls this directly

Calls 3

WriteDataMethod · 0.95
writeArrayRefAndTypeFunction · 0.85
HasErrorMethod · 0.45

Tested by

no test coverage detected