1527 |
return false; |
return false; |
1528 |
} |
} |
1529 |
|
|
1530 |
|
/** @brief Set the byte order to be used when saving. |
1531 |
|
* |
1532 |
|
* Set the byte order to be used in the file. A value of |
1533 |
|
* endian_little will create a RIFF file, endian_big a RIFX file |
1534 |
|
* and endian_native will create a RIFF file on little-endian |
1535 |
|
* machines and RIFX on big-endian machines. |
1536 |
|
* |
1537 |
|
* @param Endian - endianess to use when file is saved. |
1538 |
|
*/ |
1539 |
|
void File::SetByteOrder(endian_t Endian) { |
1540 |
|
#if WORDS_BIGENDIAN |
1541 |
|
bEndianNative = Endian != endian_little; |
1542 |
|
#else |
1543 |
|
bEndianNative = Endian != endian_big; |
1544 |
|
#endif |
1545 |
|
} |
1546 |
|
|
1547 |
/** @brief Save changes to same file. |
/** @brief Save changes to same file. |
1548 |
* |
* |
1549 |
* Make all changes of all chunks persistent by writing them to the |
* Make all changes of all chunks persistent by writing them to the |