Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324
  1. //! \file cobs.h
  2. //! \author Thomas.Hoehenleitner [at] seerose.net
  3. #ifndef COBS_H_
  4. #define COBS_H_
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. #include <stddef.h> //lint !e537 !e451 Warning 537: Repeated include file, Warning 451: Header file repeatedly included but does not have a standard
  9. #include <stdint.h> //lint !e537 !e451 Warning 537: Repeated include file, Warning 451: Header file repeatedly included but does not have a standard
  10. //! If your compiler uses a pre-C99 C dialect and does not know The "__restrict" keyword, you can define it in the project settings.
  11. size_t COBSEncode(void* __restrict out, const void* __restrict in, size_t length);
  12. //! If your compiler uses a pre-C99 C dialect and does not know The "__restrict" keyword, you can define it in the project settings.
  13. size_t COBSDecode(void* __restrict out, const void* __restrict in, size_t length);
  14. #ifdef __cplusplus
  15. }
  16. #endif
  17. #endif