Versions in this module Expand all Collapse all v2 v2.0.0 Feb 7, 2019 Changes in this version + const FFXIV_PATCH_VERSION + func MarshalBlockBytes(block BlockData) ([]byte, error) + type Block struct + Data BlockData + Header BlockHeader + Length uint32 + func (b *Block) CorrectLength() + func (b *Block) Encode(w io.Writer) error + type BlockData interface + IsBlockData func() + type BlockHeader struct + CurrentID uint32 + Opcode uint16 + Route uint32 + SubjectID uint32 + Time time.Time + U1 uint32 + U2 uint16 + U4 uint32 + type Decoder struct + func NewDecoder(bufSize int) *Decoder + func (d *Decoder) CheckHeader(buf *bufio.Reader) ([]byte, error) + func (d *Decoder) Decode(buf *bufio.Reader) (*Frame, error) + func (d *Decoder) DiscardDataUntilValid(buf *bufio.Reader) + type DecodingError struct + func (e DecodingError) Error() string + type EOFError struct + func (e EOFError) Error() string + type Frame struct + Blocks []*Block + Compression uint16 + Header Header + Length uint32 + NumBlocks uint16 + Reserved1 uint16 + Reserved2 uint32 + Reserved3 uint16 + Time time.Time + func (f *Frame) CompressBlocks() error + func (f *Frame) CorrectLength() + func (f *Frame) CorrectTimestamps(timestamp time.Time) + func (f *Frame) Encode(w io.Writer, timestamp time.Time, compress bool) error + type GenericBlockData []byte + func GenericBlockDataFromBytes(blockData []byte) *GenericBlockData + func (GenericBlockData) IsBlockData() + func (b *GenericBlockData) Length() uint32 + func (b *GenericBlockData) MarshalBytes() ([]byte, error) + func (b *GenericBlockData) MarshalJSON() ([]byte, error) + func (b *GenericBlockData) UnmarshalBytes(data []byte) error + func (b *GenericBlockData) UnmarshalJSON(data []byte) error + type Header [16]byte + func (h *Header) MarshalJSON() ([]byte, error) + func (h *Header) UnmarshalJSON(data []byte) error + type InvalidFrameLengthError struct + func (e InvalidFrameLengthError) Error() string + type InvalidHeaderError struct + func (e InvalidHeaderError) Error() string + type MismatchedReadLengthsError struct + func (e MismatchedReadLengthsError) Error() string Other modules containing this package github.com/ff14wed/xivnet github.com/ff14wed/xivnet/v3