Documentation
¶
Index ¶
- type AssertionError
- type Reader
- func (r *Reader) AssertAscii(expected string) error
- func (r *Reader) AssertByte(expected byte) error
- func (r *Reader) AssertInt16(expected int16) error
- func (r *Reader) AssertInt32(expected int32) error
- func (r *Reader) AssertInt64(expected int64) error
- func (r *Reader) AssertUInt16(expected uint16) error
- func (r *Reader) AssertUInt32(expected uint32) error
- func (r *Reader) AssertUInt64(expected uint64) error
- func (r *Reader) PopPosition() (int64, error)
- func (r *Reader) PushPosition(offset int64, whence int) (int64, error)
- func (r *Reader) Read(p []byte) (n int, err error)
- func (r *Reader) ReadAscii(n int) (string, error)
- func (r *Reader) ReadBool() (bool, error)
- func (r *Reader) ReadByte() (byte, error)
- func (r *Reader) ReadBytes(n int) ([]byte, error)
- func (r *Reader) ReadFloat32() (float32, error)
- func (r *Reader) ReadFloat64() (float64, error)
- func (r *Reader) ReadInt8() (int8, error)
- func (r *Reader) ReadInt16() (int16, error)
- func (r *Reader) ReadInt32() (int32, error)
- func (r *Reader) ReadInt64() (int64, error)
- func (r *Reader) ReadNullAscii() (string, error)
- func (r *Reader) ReadNullAsciiFrom(offset int64) (string, error)
- func (r *Reader) ReadNullJIS() (string, error)
- func (r *Reader) ReadNullJISFrom(offset int64) (string, error)
- func (r *Reader) ReadNullUTF16() (string, error)
- func (r *Reader) ReadNullUTF16From(offset int64) (string, error)
- func (r *Reader) ReadUInt8() (uint8, error)
- func (r *Reader) ReadUInt16() (uint16, error)
- func (r *Reader) ReadUInt32() (uint32, error)
- func (r *Reader) ReadUInt64() (uint64, error)
- func (r *Reader) ReadfixStr(n int) (string, error)
- func (r *Reader) Seek(offset int64, whence int) (int64, error)
- func (r *Reader) WithByteOrder(order binary.ByteOrder) *Reader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssertionError ¶
func NewAssertionError ¶
func NewAssertionError(expected, actual any) *AssertionError
func (*AssertionError) Error ¶
func (e *AssertionError) Error() string
type Reader ¶
func (*Reader) AssertAscii ¶
func (*Reader) AssertByte ¶
func (*Reader) AssertInt16 ¶
func (*Reader) AssertInt32 ¶
func (*Reader) AssertInt64 ¶
func (*Reader) AssertUInt16 ¶
func (*Reader) AssertUInt32 ¶
func (*Reader) AssertUInt64 ¶
func (*Reader) PopPosition ¶
func (*Reader) PushPosition ¶
func (*Reader) ReadFloat32 ¶
func (*Reader) ReadFloat64 ¶
func (*Reader) ReadNullAscii ¶
func (*Reader) ReadNullJIS ¶
Read null terminated ShiftJIS string
func (*Reader) ReadNullJISFrom ¶
Read null terminated ShiftJIS string from a given offset, and return to the original position
func (*Reader) ReadNullUTF16 ¶
Read null terminated UTF16 string
func (*Reader) ReadNullUTF16From ¶
Read null terminated UTF16 string from a given offset, and return to the original position
func (*Reader) ReadUInt16 ¶
func (*Reader) ReadUInt32 ¶
func (*Reader) ReadUInt64 ¶
func (*Reader) ReadfixStr ¶
read a null-terminated Shift JIS string of fixed length
Click to show internal directories.
Click to hide internal directories.