Lines Matching defs:ByteView
32 type ByteView struct { struct
34 b []byte
35 s string
39 func (v ByteView) Len() int {
47 func (v ByteView) ByteSlice() []byte {
55 func (v ByteView) String() string {
63 func (v ByteView) At(i int) byte {
71 func (v ByteView) Slice(from, to int) ByteView {
79 func (v ByteView) SliceFrom(from int) ByteView {
87 func (v ByteView) Copy(dest []byte) int {
96 func (v ByteView) Equal(b2 ByteView) bool {
105 func (v ByteView) EqualString(s string) bool {
123 func (v ByteView) EqualBytes(b2 []byte) bool {
140 func (v ByteView) Reader() io.ReadSeeker {
148 func (v ByteView) ReadAt(p []byte, off int64) (n int, err error) {
163 func (v ByteView) WriteTo(w io.Writer) (n int64, err error) {