(offsets []uint32)
| 226 | } |
| 227 | |
| 228 | func (o *offsetsEncoder) write(offsets []uint32) { |
| 229 | if len(o.vals) == 0 { |
| 230 | o.vals = offsets |
| 231 | } else { |
| 232 | base := o.vals[len(o.vals)-1] |
| 233 | for _, off := range offsets[1:] { |
| 234 | o.vals = append(o.vals, base+off) |
| 235 | } |
| 236 | } |
| 237 | } |
| 238 | |
| 239 | func ReadUint32s(loc Segment, r io.ReaderAt) ([]uint32, error) { |
| 240 | buf := make([]byte, loc.MemLength) |
no outgoing calls
no test coverage detected