At returns the byte at index i.
(i int)
| 61 | |
| 62 | // At returns the byte at index i. |
| 63 | func (v ByteView) At(i int) byte { |
| 64 | if v.b != nil { |
| 65 | return v.b[i] |
| 66 | } |
| 67 | return v.s[i] |
| 68 | } |
| 69 | |
| 70 | // Slice slices the view between the provided from and to indices. |
| 71 | func (v ByteView) Slice(from, to int) ByteView { |
nothing calls this directly
no outgoing calls
no test coverage detected