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

Method WriteInt32Slice

go/fory/writer.go:280–292  ·  view source on GitHub ↗

WriteInt32Slice writes []int32 with ref/type info

(value []int32, refMode RefMode, writeTypeInfo bool)

Source from the content-addressed store, hash-verified

278
279// WriteInt32Slice writes []int32 with ref/type info
280func (c *WriteContext) WriteInt32Slice(value []int32, refMode RefMode, writeTypeInfo bool) {
281 if refMode != RefModeNone {
282 if value == nil {
283 c.buffer.WriteInt8(NullFlag)
284 return
285 }
286 c.buffer.WriteInt8(NotNullValueFlag)
287 }
288 if writeTypeInfo {
289 c.WriteTypeId(INT32_ARRAY)
290 }
291 WriteInt32Slice(c.buffer, value)
292}
293
294// WriteInt64Slice writes []int64 with ref/type info
295func (c *WriteContext) WriteInt64Slice(value []int64, refMode RefMode, writeTypeInfo bool) {

Callers 1

writeRemainingFieldMethod · 0.80

Calls 3

WriteTypeIdMethod · 0.95
WriteInt32SliceFunction · 0.85
WriteInt8Method · 0.45

Tested by

no test coverage detected