Documentation
¶
Index ¶
Constants ¶
View Source
const ( EMPTY = iota USERSTORAGE = iota USERSTREAM = iota LOCKBYTES = iota PROPERTY = iota ROOT = iota )
constants for directory
View Source
const ( MSATSecID = iota - 4 SATSecID EOFSecID FreeSecID )
SecIDType
Variables ¶
View Source
var DEBUG = false
DEBUG enables debug
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
NameBts [32]uint16
Bsize uint16
Type byte
Flag byte
Left uint32
Right uint32
Child uint32
GUID [8]uint16
Userflags uint32
Time [2]uint64
Sstart int32
Size uint32
Proptype uint32
}
File is an OLE file
type Header ¶
type Header struct {
Signature [2]uint32
Clid [4]uint32
RevisionNumber uint16
VersionNumber uint16
ByteOrder uint16
SizeOfSector uint16
SizeOfShortSector uint16
NumberOfSectorsSAT uint32 //Total number of sectors used for the sector allocation table
FirstSecIDDirectory int32 //SecID of first sector of the directory stream
MinSizeOfStandardStream uint32 //Minimum size of a standard stream
FirstSecIDSSAT int32 //SecID of first sector of the short-sector allocation table
NumberOfSectorsSSAT uint32 //Total number of sectors used for the short-sector allocation table
FirstSecIDMSAT int32 //SecID of first sector of the master sector allocation table
NumberOfSectorsMSAT uint32 //Total number of sectors used for the master sector allocation table
FirstPartOfMSAT [109]int32
// contains filtered or unexported fields
}
Header represents the OLE header
type Ole ¶
type Ole struct {
Lsector uint32
Lssector uint32
SecID []int32
SSecID []int32
Files []File
// contains filtered or unexported fields
}
Ole represents an OLE file
type StreamReader ¶
type StreamReader struct {
// contains filtered or unexported fields
}
StreamReader is an OLE stream reader
Click to show internal directories.
Click to hide internal directories.