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

Method WriteData

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

Source from the content-addressed store, hash-verified

168var globalUint16Serializer = uint16Serializer{}
169
170func (s uint16Serializer) WriteData(ctx *WriteContext, value reflect.Value) {
171 ctx.buffer.WriteUint16(uint16(value.Uint()))
172}
173
174func (s uint16Serializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
175 _ = hasGenerics

Callers 1

WriteMethod · 0.95

Calls 2

WriteUint16Method · 0.80
uint16Function · 0.50

Tested by

no test coverage detected