Align skips bytes until the read position is a multiple of to.
(to uint64)
| 53 | |
| 54 | // Align skips bytes until the read position is a multiple of to. |
| 55 | func (d *Decoder) Align(to uint64) { |
| 56 | alignment := u64.AlignUp(d.o, uint64(to)) |
| 57 | if pad := alignment - d.o; pad != 0 { |
| 58 | d.Skip(pad) |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | // Skip skips n bytes from the reader. |
| 63 | func (d *Decoder) Skip(n uint64) { |
no test coverage detected