|  3DSoftware.com > Programming > File Formats > MSB First |
|
MSBFIRST Byte Order
For a variety of technical reasons, it is practical to require disk files to store multi-byte numbers with MSBFIRST byte ordering (Most Significant Byte First). For example, working with nibbles is possible when using MSBFIRST byte ordering. This byte ordering consists of storing the most significant byte of a multi-byte number first, followed by the next most significant byte, followed by the next most significant byte, etc. The last byte stored for a number is its least significant byte. This is the reverse order that Microsoft Windows uses. Byte swapping is always needed on a Microsoft Windows system if the number is multi-byte. The following |
|
|
Unsigned Integer (32-bit) These functions read or write an unsigned int |
|
|
|
Unsigned Short Integer (16-bit) These functions read or write an unsigned short int |
|
|
|
Double Length ANSI/IEEE Floating Point (64-bit) These functions read or write a double: |
|
|
|
Single Length ANSI/IEEE Float (32-bit) These functions read or write a float: |
|
|
|
Copyright © 2008 by 3D Software. All rights reserved. 3D Software, P.O. Box 221190, Sacramento CA 95822 USA www.3DSoftware.com Contact us |
| Thursday, 20-Nov-2008 12:14:11 GMT |