ReadInt64Slice reads []int64 with optional ref/type info
(refMode RefMode, readType bool)
| 356 | |
| 357 | // ReadInt64Slice reads []int64 with optional ref/type info |
| 358 | func (c *ReadContext) ReadInt64Slice(refMode RefMode, readType bool) []int64 { |
| 359 | err := c.Err() |
| 360 | if refMode != RefModeNone { |
| 361 | if c.buffer.ReadInt8(err) == NullFlag { |
| 362 | return nil |
| 363 | } |
| 364 | } |
| 365 | if readType { |
| 366 | actual := TypeId(c.buffer.ReadUint8(err)) |
| 367 | if actual != INT64_ARRAY { |
| 368 | c.SetError(TypeMismatchError(actual, INT64_ARRAY)) |
| 369 | return nil |
| 370 | } |
| 371 | } |
| 372 | return ReadInt64Slice(c.buffer, err) |
| 373 | } |
| 374 | |
| 375 | // ReadUint16Slice reads []uint16 with optional ref/type info |
| 376 | func (c *ReadContext) ReadUint16Slice(refMode RefMode, readType bool) []uint16 { |
no test coverage detected