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

Method WriteData

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

Source from the content-addressed store, hash-verified

114type boolSliceSerializer struct{}
115
116func (s boolSliceSerializer) WriteData(ctx *WriteContext, value reflect.Value) {
117 WriteBoolSlice(ctx.Buffer(), value.Interface().([]bool))
118}
119
120func (s boolSliceSerializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
121 done := writeSliceRefAndType(ctx, refMode, writeType, value, BOOL_ARRAY)

Callers 1

WriteMethod · 0.95

Calls 2

WriteBoolSliceFunction · 0.85
BufferMethod · 0.45

Tested by

no test coverage detected