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

Method WriteData

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

Source from the content-addressed store, hash-verified

350var globalInt16Serializer = int16Serializer{}
351
352func (s int16Serializer) WriteData(ctx *WriteContext, value reflect.Value) {
353 ctx.buffer.WriteInt16(int16(value.Int()))
354}
355
356func (s int16Serializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
357 if refMode != RefModeNone {

Callers 1

WriteMethod · 0.95

Calls 2

int16Function · 0.50
WriteInt16Method · 0.45

Tested by

no test coverage detected