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

Method ReadUint64Slice

go/fory/reader.go:412–427  ·  view source on GitHub ↗

ReadUint64Slice reads []uint64 with optional ref/type info

(refMode RefMode, readType bool)

Source from the content-addressed store, hash-verified

410
411// ReadUint64Slice reads []uint64 with optional ref/type info
412func (c *ReadContext) ReadUint64Slice(refMode RefMode, readType bool) []uint64 {
413 err := c.Err()
414 if refMode != RefModeNone {
415 if c.buffer.ReadInt8(err) == NullFlag {
416 return nil
417 }
418 }
419 if readType {
420 actual := TypeId(c.buffer.ReadUint8(err))
421 if actual != UINT64_ARRAY {
422 c.SetError(TypeMismatchError(actual, UINT64_ARRAY))
423 return nil
424 }
425 }
426 return ReadUint64Slice(c.buffer, err)
427}
428
429// ReadIntSlice reads []int with optional ref/type info
430func (c *ReadContext) ReadIntSlice(refMode RefMode, readType bool) []int {

Callers 1

readRemainingFieldMethod · 0.80

Calls 7

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

Tested by

no test coverage detected