MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / GetNbytes

Method GetNbytes

IceFireDB-Redis-Proxy/utils/reader.go:69–80  ·  view source on GitHub ↗
(num int)

Source from the content-addressed store, hash-verified

67}
68
69func (r *Reader) GetNbytes(num int) (data []byte, err error) {
70 err = r.RequireNBytes(num)
71
72 if err != nil {
73 return
74 }
75
76 data = r.Buffer[r.ReadPosition : r.ReadPosition+num]
77
78 r.ReadPosition += num
79 return
80}
81
82func (r *Reader) IsEnd() (ret bool) {
83 ret = false

Callers

nothing calls this directly

Calls 1

RequireNBytesMethod · 0.95

Tested by

no test coverage detected