Versions in this module Expand all Collapse all v0 v0.1.0 Jan 6, 2021 Changes in this version + var LSFSignature = [4]byte + func ReadLSF(r io.ReadSeeker) (lsgo.Resource, error) + func ReadLSFAttribute(r io.ReadSeeker, name string, dt lsgo.DataType, length uint, ...) (lsgo.NodeAttribute, error) + func ReadNames(r io.ReadSeeker) ([][]string, error) + func ReadNode(r io.ReadSeeker, valueStart int64, ni NodeInfo, names [][]string, ...) (lsgo.Node, error) + func ReadRegions(r io.ReadSeeker, valueStart int64, names [][]string, nodeInfo []NodeInfo, ...) ([]*lsgo.Node, error) + type AttributeEntry struct + Long bool + NameHashTableIndex uint32 + NextAttributeIndex int32 + NodeIndex int32 + Offset uint32 + TypeAndLength uint32 + func (ae *AttributeEntry) Read(r io.ReadSeeker) error + func (ae AttributeEntry) Len() int + func (ae AttributeEntry) NameIndex() int + func (ae AttributeEntry) NameOffset() int + func (ae AttributeEntry) TypeID() lsgo.DataType + type AttributeInfo struct + DataOffset uint + Length uint + NameIndex int + NameOffset int + NextAttributeIndex int + TypeID lsgo.DataType + V2 bool + type LSFHeader struct + AttributesSizeOnDisk uint32 + AttributesUncompressedSize uint32 + CompressionFlags byte + EngineVersion uint32 + Extended uint32 + NodesSizeOnDisk uint32 + NodesUncompressedSize uint32 + Signature [4]byte + StringsSizeOnDisk uint32 + StringsUncompressedSize uint32 + Unknown2 byte + Unknown3 uint16 + ValuesSizeOnDisk uint32 + ValuesUncompressedSize uint32 + Version lsgo.FileVersion + func (lsfh *LSFHeader) Read(r io.ReadSeeker) error + func (lsfh LSFHeader) IsCompressed() bool + type NodeEntry struct + FirstAttributeIndex int32 + Long bool + NameHashTableIndex uint32 + NextSiblingIndex int32 + ParentIndex int32 + func (ne *NodeEntry) Read(r io.ReadSeeker) error + func (ne NodeEntry) NameIndex() int + func (ne NodeEntry) NameOffset() int + type NodeInfo struct + FirstAttributeIndex int + NameIndex int + NameOffset int + ParentIndex int