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

Method WriteInt64Slice

go/fory/writer.go:295–307  ·  view source on GitHub ↗

WriteInt64Slice writes []int64 with ref/type info

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

Source from the content-addressed store, hash-verified

293
294// WriteInt64Slice writes []int64 with ref/type info
295func (c *WriteContext) WriteInt64Slice(value []int64, refMode RefMode, writeTypeInfo bool) {
296 if refMode != RefModeNone {
297 if value == nil {
298 c.buffer.WriteInt8(NullFlag)
299 return
300 }
301 c.buffer.WriteInt8(NotNullValueFlag)
302 }
303 if writeTypeInfo {
304 c.WriteTypeId(INT64_ARRAY)
305 }
306 WriteInt64Slice(c.buffer, value)
307}
308
309// WriteUint16Slice writes []uint16 with ref/type info
310func (c *WriteContext) WriteUint16Slice(value []uint16, refMode RefMode, writeTypeInfo bool) {

Callers 1

writeRemainingFieldMethod · 0.80

Calls 3

WriteTypeIdMethod · 0.95
WriteInt64SliceFunction · 0.85
WriteInt8Method · 0.45

Tested by

no test coverage detected