ReadFloat64Slice reads []float64 with optional ref/type info
(refMode RefMode, readType bool)
| 490 | |
| 491 | // ReadFloat64Slice reads []float64 with optional ref/type info |
| 492 | func (c *ReadContext) ReadFloat64Slice(refMode RefMode, readType bool) []float64 { |
| 493 | err := c.Err() |
| 494 | if refMode != RefModeNone { |
| 495 | if c.buffer.ReadInt8(err) == NullFlag { |
| 496 | return nil |
| 497 | } |
| 498 | } |
| 499 | if readType { |
| 500 | actual := TypeId(c.buffer.ReadUint8(err)) |
| 501 | if actual != FLOAT64_ARRAY { |
| 502 | c.SetError(TypeMismatchError(actual, FLOAT64_ARRAY)) |
| 503 | return nil |
| 504 | } |
| 505 | } |
| 506 | return ReadFloat64Slice(c.buffer, err) |
| 507 | } |
| 508 | |
| 509 | // ReadByteSlice reads []byte with optional ref/type info |
| 510 | func (c *ReadContext) ReadByteSlice(refMode RefMode, readType bool) []byte { |
no test coverage detected