Documentation ¶
Index ¶
- func Concat(a, b []byte) []byte
- type R
- func (r *R) EOF() bool
- func (r *R) ReadArrayHeader() (uint32, error)
- func (r *R) ReadBool() (bool, error)
- func (r *R) ReadBytes() ([]byte, error)
- func (r *R) ReadFloat64() (float64, error)
- func (r *R) ReadFull(p []byte) error
- func (r *R) ReadInt() (int, error)
- func (r *R) ReadInt64() (int64, error)
- func (r *R) ReadIntArray() ([]int, error)
- func (r *R) ReadRat() (*big.Rat, error)
- func (r *R) ReadRaw(size int) ([]byte, error)
- func (r *R) ReadString() (string, error)
- func (r *R) ReadUint32Array() ([]uint32, error)
- func (r *R) ReadUint8() (byte, error)
- func (r *R) ReadUsize() (uint64, error)
- func (r *R) SplitAt(n uint64) (r1, r2 R, err error)
- type Size
- type W
- func (b *W) AppendRaw(p []byte) *W
- func (b *W) AppendUsize(x uint64) *W
- func (b *W) Result() []byte
- func (b *W) WriteArrayHeader(sz uint32) *W
- func (b *W) WriteBool(x bool) *W
- func (b *W) WriteBytes(p []byte) *W
- func (b *W) WriteFloat64(x float64) *W
- func (b *W) WriteInt(x int) *W
- func (b *W) WriteInt64(x int64) *W
- func (b *W) WriteIntArray(arr []int) *W
- func (b *W) WriteRat(x *big.Rat) *W
- func (b *W) WriteString(s string) *W
- func (b *W) WriteUint32Array(arr []uint32) *W
- func (b *W) WriteUint8(x byte) *W
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type R ¶
type R struct {
Buf []byte
}
func (*R) ReadArrayHeader ¶
func (*R) ReadFloat64 ¶
func (*R) ReadIntArray ¶
func (*R) ReadString ¶
func (*R) ReadUint32Array ¶
type Size ¶
type Size struct {
// contains filtered or unexported fields
}
func (*Size) ReserveBytes ¶
func (*Size) ReserveString ¶
type W ¶
type W struct {
// contains filtered or unexported fields
}
func (*W) AppendUsize ¶
func (*W) WriteArrayHeader ¶
func (*W) WriteBytes ¶
func (*W) WriteFloat64 ¶
func (*W) WriteInt64 ¶
func (*W) WriteIntArray ¶
func (*W) WriteString ¶
func (*W) WriteUint32Array ¶
func (*W) WriteUint8 ¶
Click to show internal directories.
Click to hide internal directories.