bytes2

package
v0.0.0-...-e41513e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dump

func Dump(buf []byte) string

func DumpSize

func DumpSize(size int, buf []byte) string

func HexDump

func HexDump(buf []byte) string

func HexDumpSize

func HexDumpSize(size int, buf []byte) string

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL