This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
typedef unsigned short uint16_t;
typedef unsigned long uint32_t;
#ifdef WIN32
- typedef unsigned __int64 uint64_t;
+typedef unsigned __int64 uint64_t;
#else
- typedef unsigned long long uint64_t;
+typedef unsigned long long uint64_t;
#endif
typedef float float32_t;
typedef double float64_t;
BinIO_INLINE int BinIONormalizeByteOrder(int byte_order)
{
- if (byte_order == BinIO_HOST_BYTE_ORDER)
- {
+ if (byte_order == BinIO_HOST_BYTE_ORDER) {
byte_order = BinIO_BYTE_ORDER;
- }
- else if (byte_order == BinIO_NETWORK_BYTE_ORDER)
- {
+ } else if (byte_order == BinIO_NETWORK_BYTE_ORDER) {
byte_order = BinIO_BIG_ENDIAN_BYTE_ORDER;
}
-
+
return byte_order;
}
const uint8_t *src, uint8_t *dst,
unsigned int count);
-struct BinIOFormatCursor
-{
+struct BinIOFormatCursor {
const char *cursor;
int byte_order;
int count;