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

Method Write

go/fory/primitive.go:174–183  ·  view source on GitHub ↗
(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value)

Source from the content-addressed store, hash-verified

172}
173
174func (s uint16Serializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
175 _ = hasGenerics
176 if refMode != RefModeNone {
177 ctx.buffer.WriteInt8(NotNullValueFlag)
178 }
179 if writeType {
180 ctx.buffer.WriteUint8(uint8(UINT16))
181 }
182 s.WriteData(ctx, value)
183}
184
185func (s uint16Serializer) ReadData(ctx *ReadContext, value reflect.Value) {
186 err := ctx.Err()

Callers

nothing calls this directly

Calls 4

WriteDataMethod · 0.95
WriteUint8Method · 0.80
uint8Function · 0.50
WriteInt8Method · 0.45

Tested by

no test coverage detected