07.05.2014 Views

The Microsoft Excel File Format - OpenOffice.org

The Microsoft Excel File Format - OpenOffice.org

The Microsoft Excel File Format - OpenOffice.org

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1.2 Abstract<br />

• Record Content Listings<br />

• Data offsets enclosed in square brackets indicate record content that may be omitted (the remark “optional” may point<br />

out this).<br />

• <strong>The</strong> term “Not used” means: Ignore the data on import and write zero bytes on export. <strong>The</strong> same applies for unmentioned<br />

bits in bit fields.<br />

• <strong>The</strong> term “Unknown” describes data fields with fixed but unknown contents. On export these fields have to be written<br />

as shown.<br />

• At several places a variable is introduced, which represents the value of this field for later use. In most common<br />

cases this is a field containing a size value, which is used later in the “Size” column of the record content listing. An<br />

example can be found in ➜2.4.<br />

• Algorithm Listings<br />

Algorithms given in pseudo-code are shown in a box with light-grey background.<br />

ALGORITHM Example_Algorithm<br />

1) Command 1<br />

2) Command 2<br />

Notation conventions used in algorithms:<br />

Notation<br />

command1 ; command2<br />

var ← value<br />

Description<br />

Two commands in one line, first execute command1, then command2<br />

<strong>The</strong> value value is assigned to the variable var<br />

JUMP x)<br />

Continue with line x) in the algorithm<br />

RETURN [value]<br />

Returns value value if specified, otherwise returns without a return value<br />

IF cond THEN command Execute command only, if condition cond evaluates to true<br />

AND<br />

Binary AND operation<br />

OR<br />

Binary OR operation<br />

XOR<br />

Binary XOR (exclusive or) operation<br />

= < > = Comparison operators for conditional execution<br />

array[]<br />

array[0]<br />

An array consisting of equal typed elements<br />

<strong>The</strong> first element of the array array[] (arrays are used zero-based)<br />

1.3 Byte Order<br />

All data items containing more than one byte are stored using the Little-Endian method 1 . That means the least significant<br />

byte is stored first and the most significant byte last. This applies for all data types like 16-bit integers, 32-bit integers,<br />

floating-point values and Unicode characters.<br />

Example: <strong>The</strong> 32-bit integer value 13579BDF H is converted into the byte sequence DF H 9B H 57 H 13 H .<br />

1<br />

For more information see http://en.wikipedia.<strong>org</strong>/wiki/Endianness.<br />

9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!