Slice returns a new Data referencing a subset range of the data. The range r is relative to the base of the Slice. For example a slice of [0, 4] would return a Slice referencing the first 5 bytes of this Slice. Attempting to slice outside the range of this Slice will result in a panic.
(r Range)
| 45 | // Attempting to slice outside the range of this Slice will result in a |
| 46 | // panic. |
| 47 | Slice(r Range) Data |
| 48 | |
| 49 | // ValidRanges returns the list of slice-relative memory ranges that contain |
| 50 | // valid (non-zero) data that can be read with Get. |
no outgoing calls