()
| 80 | } |
| 81 | |
| 82 | func (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 | |
| 92 | func readint[T ~uint16 | ~uint32 | ~uint64](r *Reader) (v T) { |
| 93 | sz := unsafe.Sizeof(v) |
no outgoing calls
no test coverage detected