MCPcopy Create free account
hub / github.com/apache/fory / ReadFloat64Slice

Method ReadFloat64Slice

go/fory/reader.go:492–507  ·  view source on GitHub ↗

ReadFloat64Slice reads []float64 with optional ref/type info

(refMode RefMode, readType bool)

Source from the content-addressed store, hash-verified

490
491// ReadFloat64Slice reads []float64 with optional ref/type info
492func (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
510func (c *ReadContext) ReadByteSlice(refMode RefMode, readType bool) []byte {

Callers 2

readRemainingFieldMethod · 0.80
DeserializeFunction · 0.80

Calls 7

ErrMethod · 0.95
SetErrorMethod · 0.95
TypeMismatchErrorFunction · 0.85
ReadFloat64SliceFunction · 0.85
ReadUint8Method · 0.80
TypeIdEnum · 0.50
ReadInt8Method · 0.45

Tested by

no test coverage detected