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

Method WriteData

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

Source from the content-addressed store, hash-verified

438var globalInt64Serializer = int64Serializer{}
439
440func (s int64Serializer) WriteData(ctx *WriteContext, value reflect.Value) {
441 ctx.buffer.WriteVarint64(value.Int())
442}
443
444func (s int64Serializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
445 if refMode != RefModeNone {

Callers 1

WriteMethod · 0.95

Calls 1

WriteVarint64Method · 0.45

Tested by

no test coverage detected