SliceFrom slices the view from the provided index until the end.
(from int)
| 77 | |
| 78 | // SliceFrom slices the view from the provided index until the end. |
| 79 | func (v ByteView) SliceFrom(from int) ByteView { |
| 80 | if v.b != nil { |
| 81 | return ByteView{b: v.b[from:]} |
| 82 | } |
| 83 | return ByteView{s: v.s[from:]} |
| 84 | } |
| 85 | |
| 86 | // Copy copies b into dest and returns the number of bytes copied. |
| 87 | func (v ByteView) Copy(dest []byte) int { |
no outgoing calls