Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: star :: util ::

unpublished constants group Endianness
Usage Restrictions
not published
Description
These constans describe the endiannes of data structures.

The endianness specifies the order in which the bytes of larger types are laid out in memory.

Since
OOo 2.0

Constants
LITTLE Little endian. 
BIG Big endian. 
Constants' Details
LITTLE
const byte LITTLE =0;
Description
Little endian.

The values are stored in little endian format, i.e. the bytes of the long word 0xAABBCCDD are layed out like 0xDD, 0xCC, 0xBB, 0xAA in memory. That is, data of arbitrary machine word lengths always starts with the least significant byte, and ends with the most significant one.

BIG
const byte BIG =1;
Description
Big endian.

The values are stored in big endian format, i.e. the bytes of the long word 0xAABBCCDD are layed out like 0xAA, 0xBB, 0xCC, 0xDD in memory. That is, data of arbitrary machine word lengths always start with the most significant byte, and ends with the least significant one.

Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.