mshi

package
v0.0.0-...-57434b4 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

5 october 2014

5 october 2014

4 october 2014

4 october 2014

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetData

type AssetData struct {
	Index                int
	ContainerPath        uint32
	EntryName            string
	CompressedDataOffset uint32
	CompressedSize       uint32
	UncompressedSize     uint32
	CompressionMethod    uint16
	Locale               string
	Title                string
	ID                   string
	Version              uint32
	ParentID             string
	Order                uint32
	ContentFilter        string
	ContentType          string
	Description          string
	Category             string
	DisplayVersion       string
	ParentVersion        uint32
	ParentLocale         string
	F1KeywordCount       uint32
}

type CLS

type CLS struct {
	Count    uint32
	Length   uint32
	StartPos uint32
}

type ContainerPath

type ContainerPath struct {
	Index    int
	Filename string
	Path     string
	Vendor   string
}

type File

type File struct {
	TailData *TailData
	// contains filtered or unexported fields
}

func Open

func Open(r io.ReadSeeker) *File

func (*File) Err

func (f *File) Err() error

TODO rename to Error()? (see what stdlib does)

func (*File) ReadAssetDatas

func (f *File) ReadAssetDatas() (a []*AssetData)

TODO isolate core?

func (*File) ReadContainerPaths

func (f *File) ReadContainerPaths() (c []*ContainerPath)

TODO isolate core?

type ODL

type ODL struct {
	Offset   CLS
	Data     CLS
	Location CLS
}

type TailData

type TailData struct {
	Version             string
	FileVersion         string
	OffsetInterval      uint32
	Product             string
	ProductVersion      string
	ProductLocale       string
	AssetEntryOffset    CLS
	AssetEntryData      CLS
	SearchTerm          ODL
	TOCRootData         CLS
	ContentType         ODL
	ContentFilter       ODL
	Category            ODL
	Parent              ODL
	Content             ODL
	Keyword             ODL
	F1                  ODL
	AssetID             ODL
	AssetDataOffset     CLS
	AssetDataData       CLS
	ContainerPathOffset CLS // TODO rename
	ContainerPathData   CLS
}

Jump to

Keyboard shortcuts

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