bits

package
v0.0.0-...-ca00f6e Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func NewReader

func NewReader(r io.Reader) *Reader

func (*Reader) Read

func (r *Reader) Read(b []byte) (int, error)

func (*Reader) ReadBitAngle

func (r *Reader) ReadBitAngle(bits int) (float32, error)

func (*Reader) ReadBitCoord

func (r *Reader) ReadBitCoord(intBits, fracBits int) (float32, error)

func (*Reader) ReadBitFloat32

func (r *Reader) ReadBitFloat32() (float32, error)

func (*Reader) ReadBitFloat64

func (r *Reader) ReadBitFloat64() (float64, error)

func (*Reader) ReadBitNormal

func (r *Reader) ReadBitNormal(bits int) (float32, error)

func (*Reader) ReadBitVec3Coord

func (r *Reader) ReadBitVec3Coord(intBits, fracBits int) ([3]float32, error)

func (*Reader) ReadBitVec3Normal

func (r *Reader) ReadBitVec3Normal(bits int) ([3]float32, error)

func (*Reader) ReadBits

func (r *Reader) ReadBits(bits int) (uint64, error)

func (*Reader) ReadBool

func (r *Reader) ReadBool() (bool, error)

func (*Reader) ReadByte

func (r *Reader) ReadByte() (byte, error)

func (*Reader) ReadFloat32

func (r *Reader) ReadFloat32() (float32, error)

func (*Reader) ReadFloat64

func (r *Reader) ReadFloat64() (float64, error)

func (*Reader) ReadInt16

func (r *Reader) ReadInt16() (int16, error)

func (*Reader) ReadInt32

func (r *Reader) ReadInt32() (int32, error)

func (*Reader) ReadInt64

func (r *Reader) ReadInt64() (int64, error)

func (*Reader) ReadInt8

func (r *Reader) ReadInt8() (int8, error)

func (*Reader) ReadSigned

func (r *Reader) ReadSigned(bits int) (int64, error)

func (*Reader) ReadSignedVarInt32

func (r *Reader) ReadSignedVarInt32() (int32, error)

func (*Reader) ReadSignedVarInt64

func (r *Reader) ReadSignedVarInt64() (int64, error)

func (*Reader) ReadSlice

func (r *Reader) ReadSlice(b []byte, bits int) error

func (*Reader) ReadString

func (r *Reader) ReadString() (string, error)

func (*Reader) ReadUBitVar

func (r *Reader) ReadUBitVar() (uint32, error)

func (*Reader) ReadUint16

func (r *Reader) ReadUint16() (uint16, error)

func (*Reader) ReadUint32

func (r *Reader) ReadUint32() (uint32, error)

func (*Reader) ReadUint64

func (r *Reader) ReadUint64() (uint64, error)

func (*Reader) ReadUint8

func (r *Reader) ReadUint8() (uint8, error)

func (*Reader) ReadVarInt32

func (r *Reader) ReadVarInt32() (uint32, error)

func (*Reader) ReadVarInt64

func (r *Reader) ReadVarInt64() (uint64, error)

func (*Reader) ReadWString

func (r *Reader) ReadWString() ([]uint16, error)

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(w io.Writer) *Writer

func (*Writer) Write

func (w *Writer) Write(b []byte) (int, error)

func (*Writer) WriteBitAngle

func (w *Writer) WriteBitAngle(angle float32, bits int) error

func (*Writer) WriteBitCoord

func (w *Writer) WriteBitCoord(coord float32, intBits, fracBits int) error

func (*Writer) WriteBitFloat32

func (w *Writer) WriteBitFloat32(f float32) error

func (*Writer) WriteBitFloat64

func (w *Writer) WriteBitFloat64(f float64) error

func (*Writer) WriteBitNormal

func (w *Writer) WriteBitNormal(normal float32, bits int) error

func (*Writer) WriteBitVec3Coord

func (w *Writer) WriteBitVec3Coord(coord [3]float32, intBits, fracBits int) error

func (*Writer) WriteBitVec3Normal

func (w *Writer) WriteBitVec3Normal(normal [3]float32, bits int) error

func (*Writer) WriteBits

func (w *Writer) WriteBits(x uint64, bits int) error

func (*Writer) WriteBool

func (w *Writer) WriteBool(b bool) error

func (*Writer) WriteFloat32

func (w *Writer) WriteFloat32(f float32) error

func (*Writer) WriteFloat64

func (w *Writer) WriteFloat64(f float64) error

func (*Writer) WriteInt16

func (w *Writer) WriteInt16(n int16) error

func (*Writer) WriteInt32

func (w *Writer) WriteInt32(n int32) error

func (*Writer) WriteInt64

func (w *Writer) WriteInt64(n int64) error

func (*Writer) WriteInt8

func (w *Writer) WriteInt8(n int8) error

func (*Writer) WriteSigned

func (w *Writer) WriteSigned(n int64, bits int) error

func (*Writer) WriteSlice

func (w *Writer) WriteSlice(b []byte, bits int) error

func (*Writer) WriteString

func (w *Writer) WriteString(s string) error

func (*Writer) WriteUBitVar

func (w *Writer) WriteUBitVar(n uint32) error

func (*Writer) WriteUint16

func (w *Writer) WriteUint16(n uint16) error

func (*Writer) WriteUint32

func (w *Writer) WriteUint32(n uint32) error

func (*Writer) WriteUint64

func (w *Writer) WriteUint64(n uint64) error

func (*Writer) WriteUint8

func (w *Writer) WriteUint8(n uint8) error

func (*Writer) WriteVarInt32

func (w *Writer) WriteVarInt32(n uint32) error

func (*Writer) WriteVarInt64

func (w *Writer) WriteVarInt64(n uint64) error

func (*Writer) WriteWString

func (w *Writer) WriteWString(s []uint16) error

Jump to

Keyboard shortcuts

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