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

Method ReadInt64Slice

go/fory/reader.go:358–373  ·  view source on GitHub ↗

ReadInt64Slice reads []int64 with optional ref/type info

(refMode RefMode, readType bool)

Source from the content-addressed store, hash-verified

356
357// ReadInt64Slice reads []int64 with optional ref/type info
358func (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
376func (c *ReadContext) ReadUint16Slice(refMode RefMode, readType bool) []uint16 {

Callers 2

readRemainingFieldMethod · 0.80
DeserializeFunction · 0.80

Calls 7

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

Tested by

no test coverage detected