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

Method WriteData

go/fory/slice_primitive.go:192–194  ·  view source on GitHub ↗
(ctx *WriteContext, value reflect.Value)

Source from the content-addressed store, hash-verified

190type int16SliceSerializer struct{}
191
192func (s int16SliceSerializer) WriteData(ctx *WriteContext, value reflect.Value) {
193 WriteInt16Slice(ctx.Buffer(), value.Interface().([]int16))
194}
195
196func (s int16SliceSerializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
197 done := writeSliceRefAndType(ctx, refMode, writeType, value, INT16_ARRAY)

Callers 1

WriteMethod · 0.95

Calls 2

WriteInt16SliceFunction · 0.85
BufferMethod · 0.45

Tested by

no test coverage detected