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

Method Write

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

Source from the content-addressed store, hash-verified

288}
289
290func (s timeSerializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
291 if refMode != RefModeNone {
292 ctx.buffer.WriteInt8(NotNullValueFlag)
293 }
294 if writeType {
295 ctx.buffer.WriteUint8(uint8(TIMESTAMP))
296 }
297 s.WriteData(ctx, value)
298}
299
300func (s timeSerializer) ReadData(ctx *ReadContext, value reflect.Value) {
301 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