ReadInt16Slice reads []int16 with optional ref/type info
(refMode RefMode, readType bool)
| 320 | |
| 321 | // ReadInt16Slice reads []int16 with optional ref/type info |
| 322 | func (c *ReadContext) ReadInt16Slice(refMode RefMode, readType bool) []int16 { |
| 323 | err := c.Err() |
| 324 | if refMode != RefModeNone { |
| 325 | if c.buffer.ReadInt8(err) == NullFlag { |
| 326 | return nil |
| 327 | } |
| 328 | } |
| 329 | if readType { |
| 330 | actual := TypeId(c.buffer.ReadUint8(err)) |
| 331 | if actual != INT16_ARRAY { |
| 332 | c.SetError(TypeMismatchError(actual, INT16_ARRAY)) |
| 333 | return nil |
| 334 | } |
| 335 | } |
| 336 | return ReadInt16Slice(c.buffer, err) |
| 337 | } |
| 338 | |
| 339 | // ReadInt32Slice reads []int32 with optional ref/type info |
| 340 | func (c *ReadContext) ReadInt32Slice(refMode RefMode, readType bool) []int32 { |
no test coverage detected