MCPcopy Index your code
hub / github.com/Monibuca/engine / ReadByte

Method ReadByte

util/pool.go:36–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34}
35
36func (r *BLLReader) ReadByte() (b byte, err error) {
37 for r.CanRead() {
38 l := r.Value.Len() - r.pos
39 if l > 0 {
40 b = r.Value[r.pos]
41 r.pos++
42 return
43 }
44 r.LIBP = r.Next
45 r.pos = 0
46 }
47 return 0, io.EOF
48}
49
50func (r *BLLReader) LEB128Unmarshal() (uint, int, error) {
51 v := uint(0)

Callers 2

LEB128UnmarshalMethod · 0.95
ReadBEMethod · 0.95

Calls 2

CanReadMethod · 0.95
LenMethod · 0.65

Tested by

no test coverage detected