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

Method WriteData

go/fory/field_serializer.go:289–298  ·  view source on GitHub ↗
(ctx *WriteContext, value reflect.Value)

Source from the content-addressed store, hash-verified

287}
288
289func (s encodedUint64Serializer) WriteData(ctx *WriteContext, value reflect.Value) {
290 switch s.typeID {
291 case UINT64:
292 ctx.buffer.WriteUint64(value.Uint())
293 case TAGGED_UINT64:
294 ctx.buffer.WriteTaggedUint64(value.Uint())
295 default:
296 ctx.buffer.WriteVarUint64(value.Uint())
297 }
298}
299
300func (s encodedUint64Serializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
301 _ = hasGenerics

Callers 1

WriteMethod · 0.95

Calls 3

WriteUint64Method · 0.80
WriteTaggedUint64Method · 0.80
WriteVarUint64Method · 0.80

Tested by

no test coverage detected