bytes.h 637 B

12345678910111213141516171819202122232425262728293031
  1. /******************************************************************
  2. *
  3. * uEcho for C
  4. *
  5. * Copyright (C) Satoshi Konno 2015
  6. *
  7. * This is licensed under BSD-style license, see file COPYING.
  8. *
  9. ******************************************************************/
  10. #ifndef _UECHO_UTIL_BYTES_H_
  11. #define _UECHO_UTIL_BYTES_H_
  12. #include <uecho/typedef.h>
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. /****************************************
  17. * Function
  18. ****************************************/
  19. int uecho_bytes_toint(byte* byte_data, size_t byte_size);
  20. byte* uecho_bytes_fromint(int val, size_t bytes_size);
  21. #ifdef __cplusplus
  22. }
  23. #endif
  24. #endif