ReadUint32Slice reads []uint32 with optional ref/type info
(refMode RefMode, readType bool)
| 392 | |
| 393 | // ReadUint32Slice reads []uint32 with optional ref/type info |
| 394 | func (c *ReadContext) ReadUint32Slice(refMode RefMode, readType bool) []uint32 { |
| 395 | err := c.Err() |
| 396 | if refMode != RefModeNone { |
| 397 | if c.buffer.ReadInt8(err) == NullFlag { |
| 398 | return nil |
| 399 | } |
| 400 | } |
| 401 | if readType { |
| 402 | actual := TypeId(c.buffer.ReadUint8(err)) |
| 403 | if actual != UINT32_ARRAY { |
| 404 | c.SetError(TypeMismatchError(actual, UINT32_ARRAY)) |
| 405 | return nil |
| 406 | } |
| 407 | } |
| 408 | return ReadUint32Slice(c.buffer, err) |
| 409 | } |
| 410 | |
| 411 | // ReadUint64Slice reads []uint64 with optional ref/type info |
| 412 | func (c *ReadContext) ReadUint64Slice(refMode RefMode, readType bool) []uint64 { |
no test coverage detected