Constants

BIG_BLOCK_SIZE

BIG_BLOCK_SIZE = 0x200

SMALL_BLOCK_SIZE

SMALL_BLOCK_SIZE = 0x40

PROPERTY_STORAGE_BLOCK_SIZE

PROPERTY_STORAGE_BLOCK_SIZE = 0x80

SMALL_BLOCK_THRESHOLD

SMALL_BLOCK_THRESHOLD = 0x1000

NUM_BIG_BLOCK_DEPOT_BLOCKS_POS

NUM_BIG_BLOCK_DEPOT_BLOCKS_POS = 0x2c

ROOT_START_BLOCK_POS

ROOT_START_BLOCK_POS = 0x30

SMALL_BLOCK_DEPOT_BLOCK_POS

SMALL_BLOCK_DEPOT_BLOCK_POS = 0x3c

EXTENSION_BLOCK_POS

EXTENSION_BLOCK_POS = 0x44

NUM_EXTENSION_BLOCK_POS

NUM_EXTENSION_BLOCK_POS = 0x48

BIG_BLOCK_DEPOT_BLOCKS_POS

BIG_BLOCK_DEPOT_BLOCKS_POS = 0x4c

SIZE_OF_NAME_POS

SIZE_OF_NAME_POS = 0x40

TYPE_POS

TYPE_POS = 0x42

START_BLOCK_POS

START_BLOCK_POS = 0x74

SIZE_POS

SIZE_POS = 0x78

Properties

$wrkbook

$wrkbook

$summaryInformation

$summaryInformation

$documentSummaryInformation

$documentSummaryInformation

$data

$data

$numBigBlockDepotBlocks

$numBigBlockDepotBlocks : int

Type

int

$rootStartBlock

$rootStartBlock : int

Type

int

$sbdStartBlock

$sbdStartBlock : int

Type

int

$extensionBlock

$extensionBlock : int

Type

int

$numExtensionBlocks

$numExtensionBlocks : int

Type

int

$bigBlockChain

$bigBlockChain : string

Type

string

$smallBlockChain

$smallBlockChain : string

Type

string

$entry

$entry : string

Type

string

$rootentry

$rootentry : int

Type

int

$props

$props : array

Type

array

Methods

read()

read( $pFilename) : void

Read the file.

Parameters

$pFilename

string Filename

getStream()

getStream(int  $stream) : string

Extract binary stream data.

Parameters

int $stream

Returns

string —

readData()

readData(int  $bl) : string

Read a standard stream (by joining sectors using information from SAT).

Parameters

int $bl

Sector ID where the stream starts

Returns

string —

Data for standard stream

readPropertySets()

readPropertySets() : void

Read entries in the directory stream.

getInt4d()

getInt4d(string  $data, int  $pos) : int

Read 4 bytes of data at specified position.

Parameters

string $data
int $pos

Returns

int —