r97: Converted Scanner and Projections to C++
[ctsim.git] / include / byteorder.h
1 #ifndef NETORDER_H
2 #define NETORDER_H
3
4 /* netorder.cpp */
5
6 void *strreverse (void *dest, const void *src, size_t n);
7 bool read_nint16 (kuint16 *n, int fd);
8 bool write_nint16 (kuint16 const *n, int fd);
9 bool read_nint32 (kuint32 *n, int fd);
10 bool write_nint32 (kuint32 const *n, int fd);
11 bool read_nfloat32 (float *f, int fd);
12 bool write_nfloat32 (float const *f, int fd);
13 bool read_nfloat64 (double *d, int fd);
14 bool write_nfloat64 (double const *d, int fd);
15 void ConvertNetworkOrder (void* buffer, size_t bytes);
16 void ConvertReverseNetworkOrder (void* buffer, size_t bytes);
17
18 #endif