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

Method WriteData

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

Source from the content-addressed store, hash-verified

394var globalInt32Serializer = int32Serializer{}
395
396func (s int32Serializer) WriteData(ctx *WriteContext, value reflect.Value) {
397 ctx.buffer.WriteVarint32(int32(value.Int()))
398}
399
400func (s int32Serializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
401 if refMode != RefModeNone {

Callers 1

WriteMethod · 0.95

Calls 2

int32Function · 0.50
WriteVarint32Method · 0.45

Tested by

no test coverage detected