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

Method WriteData

go/fory/optional_serializer.go:250–254  ·  view source on GitHub ↗
(ctx *WriteContext, value reflect.Value)

Source from the content-addressed store, hash-verified

248}
249
250func (s *optionalSerializer) WriteData(ctx *WriteContext, value reflect.Value) {
251 // WriteData assumes the value is present and writes data only (no null/ref flags).
252 valueField := s.valueField(value)
253 s.valueSerializer.WriteData(ctx, valueField)
254}
255
256func (s *optionalSerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) {
257 buf := ctx.Buffer()

Callers

nothing calls this directly

Calls 2

valueFieldMethod · 0.95
WriteDataMethod · 0.65

Tested by

no test coverage detected