netio.h 882 B

1234567891011121314151617181920212223242526
  1. #ifndef __NETIO_H_
  2. #define __NETIO_H_
  3. #include "datatype.h"
  4. #if SUPPORT_INT64
  5. int write_uint64(T_UINT8* buffer,uint64_t d);
  6. int write_int64(T_UINT8* buffer,int64_t d);
  7. int read_uint64(const T_UINT8* buffer,uint64_t* d);
  8. int read_int64(const T_UINT8* buffer,int64_t* d);
  9. #endif
  10. int write_uint8(T_UINT8* buffer,T_UINT8 d);
  11. int write_uint16(T_UINT8* buffer,T_UINT16 d);
  12. int write_uint32(T_UINT8* buffer,T_UINT32 d);
  13. int write_int8(T_UINT8* buffer,T_INT8 d);
  14. int write_int16(T_UINT8* buffer,T_INT16 d);
  15. int write_int32(T_UINT8* buffer,T_INT32 d);
  16. int read_uint8(const T_UINT8* buffer,T_UINT8* d);
  17. int read_uint16(const T_UINT8* buffer,T_UINT16* d);
  18. int read_uint32(const T_UINT8* buffer,T_UINT32* d);
  19. int read_int8(const T_UINT8* buffer,T_INT8* d);
  20. int read_int16(const T_UINT8* buffer,T_INT16* d);
  21. int read_int32(const T_UINT8* buffer,T_INT32* d);
  22. #endif