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

Method Write

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

Source from the content-addressed store, hash-verified

86}
87
88func (s primitiveListSerializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
89 done := writeSliceRefAndType(ctx, refMode, writeType, value, LIST)
90 if done || ctx.HasError() {
91 return
92 }
93 s.writeDataWithGenerics(ctx, value, hasGenerics)
94}
95
96func (s primitiveListSerializer) writeDataWithGenerics(ctx *WriteContext, value reflect.Value, hasGenerics bool) {
97 length := value.Len()

Callers

nothing calls this directly

Calls 3

writeDataWithGenericsMethod · 0.95
writeSliceRefAndTypeFunction · 0.85
HasErrorMethod · 0.45

Tested by

no test coverage detected