(n uint64)
| 68 | } |
| 69 | |
| 70 | func (self *ZeroCopySource) Skip(n uint64) (eof bool) { |
| 71 | m := uint64(len(self.s)) |
| 72 | end, overflow := SafeAdd(self.off, n) |
| 73 | if overflow || end > m { |
| 74 | end = m |
| 75 | eof = true |
| 76 | } |
| 77 | self.off = end |
| 78 | |
| 79 | return |
| 80 | } |
| 81 | |
| 82 | // ReadByte implements the io.ByteReader interface. |
| 83 | func (self *ZeroCopySource) NextByte() (data byte, eof bool) { |
no test coverage detected