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

Method WriteData

go/fory/primitive.go:482–484  ·  view source on GitHub ↗
(ctx *WriteContext, value reflect.Value)

Source from the content-addressed store, hash-verified

480type intSerializer struct{}
481
482func (s intSerializer) WriteData(ctx *WriteContext, value reflect.Value) {
483 ctx.buffer.WriteVarint64(value.Int())
484}
485
486func (s intSerializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
487 if refMode != RefModeNone {

Callers 1

WriteMethod · 0.95

Calls 1

WriteVarint64Method · 0.45

Tested by

no test coverage detected