X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=include%2Fbyteorder.h;h=187e4fb571ab292037f19847129a68f7285eecba;hp=a3c51e88868665d0308e07eca1a4a32e3125b055;hb=f4a23943110823118f35756dd41fbd6707f04511;hpb=b5857e74e5735455b5ef11cbea5044ae7b2e8a0d diff --git a/include/byteorder.h b/include/byteorder.h index a3c51e8..187e4fb 100644 --- a/include/byteorder.h +++ b/include/byteorder.h @@ -4,14 +4,14 @@ /* 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);