Documentation ¶
Index ¶
- func Read[T any](reader *Reader) (T, error)
- func ReadArray[T any](reader *Reader, length int) ([]T, error)
- func Write[T any](writer *Writer, data T) error
- func WriteArray[T any](writer *Writer, data []T) error
- type Reader
- func (r *Reader) Any(a any) error
- func (r *Reader) Byte() byte
- func (r *Reader) ByteArray(len int) []byte
- func (r Reader) Error() error
- func (r *Reader) Float32() float32
- func (r *Reader) Float32Array(len int) []float32
- func (r *Reader) Float64() float64
- func (r *Reader) Float64Array(len int) []float64
- func (r *Reader) Int16() int16
- func (r *Reader) Int32() int32
- func (r *Reader) Int32Array(len int) []int32
- func (r *Reader) Int64() int64
- func (r *Reader) Read(p []byte) (n int, err error)
- func (r *Reader) ReadByte() (byte, error)
- func (r *Reader) String(len int) string
- func (r *Reader) UInt16() uint16
- func (r *Reader) UInt32() uint32
- func (r *Reader) UInt64() uint64
- func (r *Reader) UVarInt() (i uint64)
- func (r *Reader) Uint32Array(len int) []uint32
- func (r *Reader) VarInt() (i int64)
- type Writer
- func (w *Writer) Any(a any) error
- func (w *Writer) Byte(i byte) error
- func (w *Writer) ByteArray(b []byte) error
- func (w Writer) Error() error
- func (w *Writer) Float32(f float32) error
- func (w *Writer) Float32Array(fArr []float32) error
- func (w *Writer) Float64(f float64) error
- func (w *Writer) Float64Array(fArr []float64) error
- func (w *Writer) Int16(i int16) error
- func (w *Writer) Int32(i int32) error
- func (w *Writer) Int32Array(iArr []int32) error
- func (w *Writer) Int64(i int64) error
- func (w *Writer) UInt16(i uint16) error
- func (w *Writer) UInt32(i uint32) error
- func (w *Writer) UInt64(i uint64) error
- func (w *Writer) UVarInt(i uint64) error
- func (w *Writer) Uint32Array(iArr []uint32) error
- func (w *Writer) VarInt(i int64) error
- func (w *Writer) Write(p []byte) (n int, err error)
- func (w *Writer) WriteByte(c byte) error
- func (w *Writer) WriteString(s string) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteArray ¶ added in v1.1.0
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) Any ¶ added in v1.1.0
Reads data and sets the value a passed into this function. Function must recieve a pointer to the value to be set.
func (*Reader) Float32Array ¶
func (*Reader) Float64Array ¶
func (*Reader) Int32Array ¶
func (*Reader) Uint32Array ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) Float32Array ¶
func (*Writer) Float64Array ¶
func (*Writer) Int32Array ¶
func (*Writer) Uint32Array ¶
Click to show internal directories.
Click to hide internal directories.