|  3DSoftware.com > Programming > File Formats > FIN > Page 3 |
|
FIN File Format
Page 3
Data Elements Some data elements are stored as a single byte each, which stores A data element can also be a nibble. In nibble streams we sometimes use a data type we call shortshort which is |
|||
|
|||
|
For multi-byte integers we support the usual If you need to support Sign-magnitude (also called signed-magnitude) consists of an unsigned number with a leading sign bit in the leading byte of the number. The leading sign bit is clear (0) if the number is positive, or set (1) if the number is negative. There are no pad bytes in FIN files. Data are saved to disk on byte boundaries, not on word boundaries or any other kind of delimiters. However, there can be pad nibbles in the FIN file, to extend nibble streams to byte boundaries. If a nibble stream that will be saved to disk on its own (not as part of a larger nibble stream) is an odd number of nibbles it will be extended with an extra nibble (equal to 0x0) so that it can be saved to disk as a byte stream (2 nibbles per byte). |
|||
|
MSBFIRST Byte Order
Any variable that is multi-byte (such as a Byte streams can be written directly to (and read directly from) disk file as you normally do (without special functions), because byte stream elements are not multi-byte. Each element (variable) in a byte array is a single byte. |
| Page 3 | ||||||
|
|
Copyright © 2008 by 3D Software. All rights reserved. 3D Software, P.O. Box 221190, Sacramento CA 95822 USA www.3DSoftware.com Contact us |
| Tuesday, 06-Jan-2009 04:46:38 GMT |