(off uint64)
| 208 | } |
| 209 | |
| 210 | func (u *Uint32Encoder) Segment(off uint64) (uint64, Segment) { |
| 211 | len := uint64(len(u.out)) |
| 212 | return off + len, Segment{ |
| 213 | Offset: off, |
| 214 | MemLength: len, |
| 215 | Length: u.bytesLen, |
| 216 | CompressionFormat: CompressionFormatNone, |
| 217 | } |
| 218 | } |
| 219 | |
| 220 | type offsetsEncoder struct { |
| 221 | Uint32Encoder |