03.01.2013 Views

Chapter 1

Chapter 1

Chapter 1

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

the run is no more than 255 bytes in length. There is more information about resource file<br />

compression in the UIQ SDK.<br />

Taking this explanation into account, you can see from the following table how the data is<br />

distributed between the elements of which the resource is composed.<br />

What you see is that, apart from the effects of data compression, the compiled resource just<br />

contains the individual elements, listed sequentially. A WORD, for example, occupies two<br />

bytes and an LTEXT is represented by a byte specifying the length, followed by the text.<br />

Where there are embedded STRUCTs, the effect is to flatten the structure. As we shall see<br />

later, the runtime interpretation of the data is the responsibility of the class or function that<br />

uses it.<br />

Start of MENU-PANE<br />

00 [compressed data run length]<br />

0F [uncompressed data run length]<br />

02 00 array item count<br />

First MENU-ITEM<br />

00 10 00 00 command = EHelloGuiCmd0<br />

00 00 00 00 cascade=0 (default)<br />

00 00 00 00 flags=0 (default)<br />

06 [string count byte]<br />

06 [compressed data run length]<br />

49 74 65 6D 20 30 txt = "Item 0"<br />

17 [uncompressed data run length]<br />

00 extratxt=""(default)<br />

00 bmpfile=""(default)<br />

FF FF bmpid=0xffff (default)<br />

FF FF bmpmask=0xffff (default)<br />

00 00 00 00 extension=0 (default)<br />

Second MENU-ITEM<br />

00 01 00 00 command = EEikCmdExit<br />

00 00 00 00 cascade=0 (default)<br />

00 00 00 00 flags=0 (default)<br />

0D [string count byte]<br />

0D [compressed data run length]<br />

43 6C 6F 73 65 20 txt = "Close (Debug)"<br />

28 64 65 62<br />

75 67 29

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

Saved successfully!

Ooh no, something went wrong!