MCPcopy Create free account
hub / github.com/LagrangeDev/LagrangeGo / ReadU8

Method ReadU8

utils/binary/reader.go:82–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80}
81
82func (r *Reader) ReadU8() (v uint8) {
83 if r.reader != nil {
84 _, _ = r.reader.Read(unsafe.Slice(&v, 1))
85 return
86 }
87 v = r.buffer[r.pos]
88 r.pos++
89 return
90}
91
92func readint[T ~uint16 | ~uint32 | ~uint64](r *Reader) (v T) {
93 sz := unsafe.Sizeof(v)

Callers 9

decodeLoginResponseMethod · 0.95
FetchQRCodeMethod · 0.95
GetQRCodeResultMethod · 0.95
ReadResponseMethod · 0.95
UnmarshalMethod · 0.95
SkipBytesWithLengthMethod · 0.95
ReadBytesWithLengthMethod · 0.95
ReadI8Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected