r97: Converted Scanner and Projections to C++
[ctsim.git] / include / byteorder.h
index a3c51e88868665d0308e07eca1a4a32e3125b055..187e4fb571ab292037f19847129a68f7285eecba 100644 (file)
@@ -4,14 +4,14 @@
 /* netorder.cpp */
 
 void *strreverse (void *dest, const void *src, size_t n);
 /* netorder.cpp */
 
 void *strreverse (void *dest, const void *src, size_t n);
-int read_nint16 (kuint16 *n, int fd);
-int write_nint16 (kuint16 const *n, int fd);
-int read_nint32 (kuint32 *n, int fd);
-int write_nint32 (kuint32 const *n, int fd);
-int read_nfloat32 (float *f, int fd);
-int write_nfloat32 (float const *f, int fd);
-int read_nfloat64 (double *d, int fd);
-int write_nfloat64 (double const *d, int fd);
+bool read_nint16 (kuint16 *n, int fd);
+bool write_nint16 (kuint16 const *n, int fd);
+bool read_nint32 (kuint32 *n, int fd);
+bool write_nint32 (kuint32 const *n, int fd);
+bool read_nfloat32 (float *f, int fd);
+bool write_nfloat32 (float const *f, int fd);
+bool read_nfloat64 (double *d, int fd);
+bool write_nfloat64 (double const *d, int fd);
 void ConvertNetworkOrder (void* buffer, size_t bytes);
 void ConvertReverseNetworkOrder (void* buffer, size_t bytes);
 
 void ConvertNetworkOrder (void* buffer, size_t bytes);
 void ConvertReverseNetworkOrder (void* buffer, size_t bytes);