ReadInt32Slice reads []int32 with optional ref/type info
(refMode RefMode, readType bool)
| 338 | |
| 339 | // ReadInt32Slice reads []int32 with optional ref/type info |
| 340 | func (c *ReadContext) ReadInt32Slice(refMode RefMode, readType bool) []int32 { |
| 341 | err := c.Err() |
| 342 | if refMode != RefModeNone { |
| 343 | if c.buffer.ReadInt8(err) == NullFlag { |
| 344 | return nil |
| 345 | } |
| 346 | } |
| 347 | if readType { |
| 348 | actual := TypeId(c.buffer.ReadUint8(err)) |
| 349 | if actual != INT32_ARRAY { |
| 350 | c.SetError(TypeMismatchError(actual, INT32_ARRAY)) |
| 351 | return nil |
| 352 | } |
| 353 | } |
| 354 | return ReadInt32Slice(c.buffer, err) |
| 355 | } |
| 356 | |
| 357 | // ReadInt64Slice reads []int64 with optional ref/type info |
| 358 | func (c *ReadContext) ReadInt64Slice(refMode RefMode, readType bool) []int64 { |
no test coverage detected