ReadBoolSlice reads []bool with ref/type info
(refMode RefMode, readType bool)
| 284 | |
| 285 | // ReadBoolSlice reads []bool with ref/type info |
| 286 | func (c *ReadContext) ReadBoolSlice(refMode RefMode, readType bool) []bool { |
| 287 | err := c.Err() |
| 288 | if refMode != RefModeNone { |
| 289 | if c.buffer.ReadInt8(err) == NullFlag { |
| 290 | return nil |
| 291 | } |
| 292 | } |
| 293 | if readType { |
| 294 | actual := TypeId(c.buffer.ReadUint8(err)) |
| 295 | if actual != BOOL_ARRAY { |
| 296 | c.SetError(TypeMismatchError(actual, BOOL_ARRAY)) |
| 297 | return nil |
| 298 | } |
| 299 | } |
| 300 | return ReadBoolSlice(c.buffer, err) |
| 301 | } |
| 302 | |
| 303 | // ReadInt8Slice reads []int8 with optional ref/type info |
| 304 | func (c *ReadContext) ReadInt8Slice(refMode RefMode, readType bool) []int8 { |
no test coverage detected