Documentation
¶
Overview ¶
Package cabfile provides a bare minimum implementation of a parser for the Microsoft Cabinet file format. Its goal is to support the feature set of Cabinet files produced by gcab for the LVFS project.
Normative references for this implementation are MS-CAB for the Cabinet file format and MS-MCI for the Microsoft ZIP Compression and Decompression Data Structure.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cabinet ¶
type Cabinet struct {
// contains filtered or unexported fields
}
Cabinet provides read-only access to Microsoft Cabinet files.
func New ¶
func New(r io.ReadSeeker) (*Cabinet, error)
New returns a new Cabinet with the header structures parsed and sanity checked.
func (*Cabinet) Content ¶
Content returns the content of the file specified by its filename as an io.Reader. Note that the entire folder which contains the file in question is decompressed for every file request.