Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrAwbFileNotFound = errors.New("cannot find awb file")
ErrAwbFileNotFound is cannot find awb file error
var ErrFileCountExceeds = errors.New("file count exceeds max value for uint16")
ErrFileCountExceeds is error (file count exceeds max value for uint16)
var ErrNoAfs2Header = errors.New("no afs2 archive header")
ErrNoAfs2Header is no afs2 archive header error
var ErrNoUtfTableHeader = errors.New("no utftable header")
ErrNoUtfTableHeader is no UTF Table signature error
var ErrUnexpectedReferenceType = errors.New("unexpected referencetype")
ErrUnexpectedReferenceType is unexpected referencetype error
var ErrUnknownColumnType = errors.New("unknown column type")
ErrUnknownColumnType is unknown column type error
var SignatureCriUtfTable = []byte("@UTF")
SignatureCriUtfTable is utfTable signature
Functions ¶
This section is empty.
Types ¶
type CriAcbCueRecord ¶
type CriAcbCueRecord struct {
CueID uint32
ReferenceType byte
ReferenceIndex uint16
IsWaveformIdentified bool
WaveformIndex uint16
WaveformID uint16
EncodeType byte
IsStreaming bool
CueName string
}
CriAcbCueRecord is cue data structure
func (CriAcbCueRecord) GetFileExtension ¶
func (cr CriAcbCueRecord) GetFileExtension() string
GetFileExtension return file extension (.xxx)
type CriAcbFile ¶
type CriAcbFile struct {
Cue []CriAcbCueRecord
CueNameToWaveForms map[string]uint16
InternalAwb *CriAfs2Archive
ExternalAwb *CriAfs2Archive
// contains filtered or unexported fields
}
CriAcbFile is Acb file structure
func LoadCriAcbFile ¶
func LoadCriAcbFile(path string) (acbFile *CriAcbFile, err error)
LoadCriAcbFile is load file to *CriAcbFile
func (*CriAcbFile) Files ¶
func (af *CriAcbFile) Files() map[string][]byte
Files returns key=filename and value=data in map
type CriAfs2Archive ¶
type CriAfs2Archive struct {
Signature []byte
Version []byte
FileCount uint32
ByteAlignment uint32
Files map[uint16]CriAfs2File
}
CriAfs2Archive is Afs2 archive structure
func LoadCriAfs2Archive ¶
func LoadCriAfs2Archive(buf io.ReadSeeker, offset int64) (arh *CriAfs2Archive, err error)
LoadCriAfs2Archive is Afs2 struce load from readseeker
type CriAfs2File ¶
type CriAfs2File struct {
CueID uint16
FileOffsetRaw int64
FileOffsetByteAligned int64
FileLength int64
Data []byte
}
CriAfs2File is file data in Afs2 archive
type CriUtfTable ¶
type CriUtfTable struct {
Signature []byte
Size uint32
IsEncrypt bool
Seek byte
Increment byte
Unknown1 uint16
RowOffset uint16
StringTableOffset uint32
DataOffset uint32
TableNameOffset uint32
TableName string
NumberOfFields uint16
RowSize uint16
NumberOfRows uint32
Rows []map[string]CriField
// contains filtered or unexported fields
}
CriUtfTable is '@UTF' bytes structure
func NewCriUtfTable ¶
func NewCriUtfTable(base io.ReadSeeker, offset int64) (table *CriUtfTable, err error)
NewCriUtfTable return Table Data