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

Method WriteInt8Slice

go/fory/writer.go:250–262  ·  view source on GitHub ↗

WriteInt8Slice writes []int8 with ref/type info

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

Source from the content-addressed store, hash-verified

248
249// WriteInt8Slice writes []int8 with ref/type info
250func (c *WriteContext) WriteInt8Slice(value []int8, refMode RefMode, writeTypeInfo bool) {
251 if refMode != RefModeNone {
252 if value == nil {
253 c.buffer.WriteInt8(NullFlag)
254 return
255 }
256 c.buffer.WriteInt8(NotNullValueFlag)
257 }
258 if writeTypeInfo {
259 c.WriteTypeId(INT8_ARRAY)
260 }
261 WriteInt8Slice(c.buffer, value)
262}
263
264// WriteInt16Slice writes []int16 with ref/type info
265func (c *WriteContext) WriteInt16Slice(value []int16, refMode RefMode, writeTypeInfo bool) {

Callers 1

writeRemainingFieldMethod · 0.80

Calls 3

WriteTypeIdMethod · 0.95
WriteInt8SliceFunction · 0.85
WriteInt8Method · 0.45

Tested by

no test coverage detected