Documentation ¶
Index ¶
- func Dump(buf []byte) string
- func DumpSize(size int, buf []byte) string
- func HexDump(buf []byte) string
- func HexDumpSize(size int, buf []byte) string
- func ReadBytes(dbuf *BufferInput) (b []byte, err error)
- func ReadString(dbuf *BufferInput) (s string, err error)
- func WriteBytes(x *BufferOutput, b []byte)
- func WriteString(x *BufferOutput, s string)
- type BufferInput
- func (m *BufferInput) Buf() ([]byte, error)
- func (m *BufferInput) Byte() byte
- func (m *BufferInput) Bytes(size int) []byte
- func (m *BufferInput) Double() float64
- func (d *BufferInput) Dump() string
- func (d *BufferInput) DumpSize(size int) string
- func (m *BufferInput) Error() error
- func (m *BufferInput) Int16() int16
- func (m *BufferInput) Int32() int32
- func (m *BufferInput) Int64() int64
- func (m *BufferInput) UInt16() uint16
- func (m *BufferInput) UInt32() uint32
- func (m *BufferInput) UInt64() uint64
- type BufferOutput
- func (e *BufferOutput) Buf() []byte
- func (e *BufferOutput) Byte(s byte)
- func (e *BufferOutput) Bytes(s []byte)
- func (e *BufferOutput) Double(s float64)
- func (e *BufferOutput) Int16(s int16)
- func (e *BufferOutput) Int32(s int32)
- func (e *BufferOutput) Int64(s int64)
- func (e *BufferOutput) Len() int
- func (e *BufferOutput) UInt16(s uint16)
- func (e *BufferOutput) UInt32(s uint32)
- func (e *BufferOutput) UInt64(s uint64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HexDumpSize ¶
func ReadBytes ¶
func ReadBytes(dbuf *BufferInput) (b []byte, err error)
func ReadString ¶
func ReadString(dbuf *BufferInput) (s string, err error)
func WriteBytes ¶
func WriteBytes(x *BufferOutput, b []byte)
func WriteString ¶
func WriteString(x *BufferOutput, s string)
Types ¶
type BufferInput ¶
type BufferInput struct {
// contains filtered or unexported fields
}
func NewBufferInput ¶
func NewBufferInput(buf []byte) *BufferInput
func (*BufferInput) Buf ¶
func (m *BufferInput) Buf() ([]byte, error)
func (*BufferInput) Byte ¶
func (m *BufferInput) Byte() byte
func (*BufferInput) Bytes ¶
func (m *BufferInput) Bytes(size int) []byte
func (*BufferInput) Double ¶
func (m *BufferInput) Double() float64
func (*BufferInput) Dump ¶
func (d *BufferInput) Dump() string
func (*BufferInput) DumpSize ¶
func (d *BufferInput) DumpSize(size int) string
func (*BufferInput) Error ¶
func (m *BufferInput) Error() error
func (*BufferInput) Int16 ¶
func (m *BufferInput) Int16() int16
func (*BufferInput) Int32 ¶
func (m *BufferInput) Int32() int32
func (*BufferInput) Int64 ¶
func (m *BufferInput) Int64() int64
func (*BufferInput) UInt16 ¶
func (m *BufferInput) UInt16() uint16
func (*BufferInput) UInt32 ¶
func (m *BufferInput) UInt32() uint32
func (*BufferInput) UInt64 ¶
func (m *BufferInput) UInt64() uint64
type BufferOutput ¶
type BufferOutput struct {
// contains filtered or unexported fields
}
func NewBufferOutput ¶
func NewBufferOutput(cap int) *BufferOutput
func (*BufferOutput) Buf ¶
func (e *BufferOutput) Buf() []byte
func (*BufferOutput) Byte ¶
func (e *BufferOutput) Byte(s byte)
func (*BufferOutput) Bytes ¶
func (e *BufferOutput) Bytes(s []byte)
func (*BufferOutput) Double ¶
func (e *BufferOutput) Double(s float64)
func (*BufferOutput) Int16 ¶
func (e *BufferOutput) Int16(s int16)
func (*BufferOutput) Int32 ¶
func (e *BufferOutput) Int32(s int32)
func (*BufferOutput) Int64 ¶
func (e *BufferOutput) Int64(s int64)
func (*BufferOutput) Len ¶
func (e *BufferOutput) Len() int
func (*BufferOutput) UInt16 ¶
func (e *BufferOutput) UInt16(s uint16)
func (*BufferOutput) UInt32 ¶
func (e *BufferOutput) UInt32(s uint32)
func (*BufferOutput) UInt64 ¶
func (e *BufferOutput) UInt64(s uint64)
Click to show internal directories.
Click to hide internal directories.