data_types

package
v0.0.0-...-157ca18 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BufReader

type BufReader interface {
	ReadBuf([]byte, byteorder.ByteOrder) (int, error)
}

type BufWriter

type BufWriter interface {
	WriteBuf([]byte, byteorder.ByteOrder) (int, error)
}

type ByteArray

type ByteArray []byte

func (*ByteArray) Read

func (this *ByteArray) Read(rd io.Reader, endian byteorder.ByteOrder) error

func (*ByteArray) ReadBuf

func (this *ByteArray) ReadBuf(buf []byte, endian byteorder.ByteOrder) (int, error)

func (*ByteArray) Write

func (this *ByteArray) Write(wt io.Writer, endian byteorder.ByteOrder) error

func (*ByteArray) WriteBuf

func (this *ByteArray) WriteBuf(buf []byte, endian byteorder.ByteOrder) (int, error)

type Maybe

type Maybe struct {
	Content interface {
		Reader
		BufReader
		Writer
		BufWriter
	}
}

func (*Maybe) Read

func (this *Maybe) Read(rd io.Reader, endian byteorder.ByteOrder) error

func (*Maybe) ReadBuf

func (this *Maybe) ReadBuf(buf []byte, endian byteorder.ByteOrder) (int, error)

func (*Maybe) String

func (this *Maybe) String() string

func (*Maybe) Write

func (this *Maybe) Write(wt io.Writer, endian byteorder.ByteOrder) error

func (*Maybe) WriteBuf

func (this *Maybe) WriteBuf(buf []byte, endian byteorder.ByteOrder) (int, error)

type Reader

type Reader interface {
	Read(io.Reader, byteorder.ByteOrder) error
}

type String

type String string

func ReadString

func ReadString(rd io.Reader, endian byteorder.ByteOrder) (String, error)

func (*String) Read

func (this *String) Read(rd io.Reader, endian byteorder.ByteOrder) error

func (*String) ReadBuf

func (this *String) ReadBuf(buf []byte, endian byteorder.ByteOrder) (int, error)

func (*String) Write

func (this *String) Write(wt io.Writer, endian byteorder.ByteOrder) error

func (*String) WriteBuf

func (this *String) WriteBuf(buf []byte, endian byteorder.ByteOrder) (int, error)

type UUID

type UUID [16]byte

func (*UUID) Read

func (this *UUID) Read(rd io.Reader, endian byteorder.ByteOrder) error

func (*UUID) ReadBuf

func (this *UUID) ReadBuf(buf []byte, endian byteorder.ByteOrder) (int, error)

func (*UUID) String

func (this *UUID) String() string

func (*UUID) Write

func (this *UUID) Write(wt io.Writer, endian byteorder.ByteOrder) error

func (*UUID) WriteBuf

func (this *UUID) WriteBuf(buf []byte, endian byteorder.ByteOrder) (int, error)

type UVarint

type UVarint uint64

func (*UVarint) Read

func (this *UVarint) Read(rd io.Reader, endian byteorder.ByteOrder) error

func (*UVarint) ReadBuf

func (this *UVarint) ReadBuf(buf []byte, endian byteorder.ByteOrder) (int, error)

func (*UVarint) Write

func (this *UVarint) Write(wt io.Writer, endian byteorder.ByteOrder) error

func (*UVarint) WriteBuf

func (this *UVarint) WriteBuf(buf []byte, endian byteorder.ByteOrder) (int, error)

type Varint

type Varint int64

func (*Varint) Read

func (this *Varint) Read(rd io.Reader, endian byteorder.ByteOrder) error

func (*Varint) ReadBuf

func (this *Varint) ReadBuf(buf []byte, endian byteorder.ByteOrder) (int, error)

func (*Varint) Write

func (this *Varint) Write(wt io.Writer, endian byteorder.ByteOrder) error

func (*Varint) WriteBuf

func (this *Varint) WriteBuf(buf []byte, endian byteorder.ByteOrder) (int, error)

type Writer

type Writer interface {
	Write(io.Writer, byteorder.ByteOrder) error
}

Jump to

Keyboard shortcuts

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