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

Method WriteData

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

Source from the content-addressed store, hash-verified

228}
229
230func (s encodedInt64Serializer) WriteData(ctx *WriteContext, value reflect.Value) {
231 switch s.typeID {
232 case INT64:
233 ctx.buffer.WriteInt64(value.Int())
234 case TAGGED_INT64:
235 ctx.buffer.WriteTaggedInt64(value.Int())
236 default:
237 ctx.buffer.WriteVarint64(value.Int())
238 }
239}
240
241func (s encodedInt64Serializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
242 _ = hasGenerics

Callers 1

WriteMethod · 0.95

Calls 3

WriteInt64Method · 0.45
WriteTaggedInt64Method · 0.45
WriteVarint64Method · 0.45

Tested by

no test coverage detected