Miscellaneous C++ utility classes and functions for niche use cases.
zlib License.
Windows, Linux, macOS.
CUN is written in ISO C++17, and so probably works fine on other OS.
TBD.
An abstraction layer of binary data writing.
- Data writer interface
- core
- binary_writer_core.hpp
- embedded
- binary_writer.hpp
- hosted
- binary_writer.hpp
Binary data pack / unpack functions.
- Binary data writer && Byte data writer
- core
- byte_packer_core.cpp
- byte_packer_core.hpp
- byte_packer.h
- embedded
- byte_packer.hpp
- hosted
- byte_packer.hpp
A circular buffer class without implicit dynamic memory allocation.
None.
- core
- circular_buffer.hpp
Utility functions for C-style string.
None.
- core
- cstrutil.h
- cstrutil.hpp
- cstrutil_copy.cpp
- cstrutil_is_ctype.cpp
- cstrutil_to_numeric.cpp
An abstraction interface of data writing.
None.
- core
- data_writer.hpp
An event loop toolbox.
- Mailbox
- hosted
- event_loop.hpp
A logger class.
None.
- machdep
- logger.hpp
An inter-thread communication mailbox class.
None.
- hosted
- mailbox.hpp
Miscellaneous utility functions.
None.
- core
- misc.h
- misc_core.hpp
- embedded
- misc.hpp
- hosted
- misc.hpp
- misc_basename.cpp
A state machine class to repeat function call.
None.
- core
- repeat_call_core.hpp
- embedded
- repeat_call.hpp
- hosted
- repeat_call.hpp
Utility functions for sequence class.
None.
- hosted
- sequtil.hpp
Utility functions to sleep / delay current thread.
None.
- hosted
- sleep.cpp
- sleep.hpp
A simple software timer.
None.
- hosted
- soft_timer.hpp
Utility functions for std::string.
None.
- hosted
- strutil.hpp
- strutil_to_numeric.cpp
Utility functions for system tick.
None.
- hosted
- system_tick.cpp
- system_tick.hpp
Utility functions for unit test.
None.
- hosted
- unittest.hpp