Documentation
¶
Index ¶
- type Byteptr
- func (p *Byteptr) Bytes() []byte
- func (p *Byteptr) Init(s []byte, offset, len int) *Byteptr
- func (p *Byteptr) InitStr(s string, offset, len int) *Byteptr
- func (p Byteptr) Len() int
- func (p Byteptr) Offset() int
- func (p *Byteptr) Reset() *Byteptr
- func (p *Byteptr) SetLen(len int) *Byteptr
- func (p *Byteptr) SetOffset(offset int) *Byteptr
- func (p *Byteptr) String() string
- func (p *Byteptr) TakeAddr(s []byte) *Byteptr
- func (p *Byteptr) TakeStrAddr(s string) *Byteptr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Byteptr ¶
type Byteptr struct {
// contains filtered or unexported fields
}
Byteptr is a pointer-free representation of bytes/string types.
Similar to reflect.SliceHeader/reflect.StringHeader structs.
func (*Byteptr) Bytes ¶
Bytes returns byte sub-slice using offset from previously take address with length len.
func (*Byteptr) TakeStrAddr ¶
TakeStrAddr takes address of underlying byte array of string s.
Click to show internal directories.
Click to hide internal directories.