History log of /sssd-io/src/tests/cmocka/test_iobuf.c
Revision Date Author Comments Expand
9a9b5e115b079751422be22fd252c0b283611c62 14-Mar-2017 Jakub Hrozek <jhrozek@redhat.com>

UTIL: Add a generic iobuf module The KCM responder reads bytes and writes bytes from a buffer of bytes. Instead of letting the caller deal with low-level handling using the SAFEALIGN macros, this patch adds a new iobuf.c module with more high-level functions. The core is a iobuf struct that keeps track of the buffer, its total capacity and a current read or write position. There are helper function to read or write a generic buffer with a set length. Later, we will also add convenience functions to read C data types using the SAFEALIGN macros. Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>