ConsumeBytes reads and throws away a number of bytes from r, returning the number of bytes it consumed.
(r Reader, bytes uint64)
| 101 | // ConsumeBytes reads and throws away a number of bytes from r, returning the |
| 102 | // number of bytes it consumed. |
| 103 | func ConsumeBytes(r Reader, bytes uint64) uint64 { |
| 104 | for i := uint64(0); i < bytes; i++ { |
| 105 | r.Uint8() |
| 106 | } |
| 107 | return bytes |
| 108 | } |