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

Method WriteBoolSlice

go/fory/writer.go:235–247  ·  view source on GitHub ↗

WriteBoolSlice writes []bool with ref/type info

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

Source from the content-addressed store, hash-verified

233
234// WriteBoolSlice writes []bool with ref/type info
235func (c *WriteContext) WriteBoolSlice(value []bool, refMode RefMode, writeTypeInfo bool) {
236 if refMode != RefModeNone {
237 if value == nil {
238 c.buffer.WriteInt8(NullFlag)
239 return
240 }
241 c.buffer.WriteInt8(NotNullValueFlag)
242 }
243 if writeTypeInfo {
244 c.WriteTypeId(BOOL_ARRAY)
245 }
246 WriteBoolSlice(c.buffer, value)
247}
248
249// WriteInt8Slice writes []int8 with ref/type info
250func (c *WriteContext) WriteInt8Slice(value []int8, refMode RefMode, writeTypeInfo bool) {

Callers 1

writeRemainingFieldMethod · 0.80

Calls 3

WriteTypeIdMethod · 0.95
WriteBoolSliceFunction · 0.85
WriteInt8Method · 0.45

Tested by

no test coverage detected