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

Method Write

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

Source from the content-addressed store, hash-verified

264}
265
266func (s uint64Serializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
267 _ = hasGenerics
268 if refMode != RefModeNone {
269 ctx.buffer.WriteInt8(NotNullValueFlag)
270 }
271 if writeType {
272 ctx.buffer.WriteUint8(uint8(VAR_UINT64))
273 }
274 s.WriteData(ctx, value)
275}
276
277func (s uint64Serializer) ReadData(ctx *ReadContext, value reflect.Value) {
278 err := ctx.Err()

Callers

nothing calls this directly

Calls 4

WriteDataMethod · 0.95
WriteUint8Method · 0.80
uint8Function · 0.50
WriteInt8Method · 0.45

Tested by

no test coverage detected