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

Method WriteData

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

Source from the content-addressed store, hash-verified

494type intSliceSerializer struct{}
495
496func (s intSliceSerializer) WriteData(ctx *WriteContext, value reflect.Value) {
497 WriteIntSlice(ctx.Buffer(), value.Interface().([]int))
498}
499
500func (s intSliceSerializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
501 var typeId TypeId = INT32_ARRAY

Callers 1

WriteMethod · 0.95

Calls 2

WriteIntSliceFunction · 0.85
BufferMethod · 0.45

Tested by

no test coverage detected