17 #include "CUnit/Basic.h"
24 static void test_bytebuffer_append(
void)
37 CU_ASSERT_EQUAL(
res, -12345);
50 void bytebuffer_suite_setup(
void);
51 void bytebuffer_suite_setup(
void)
53 PG_TEST(test_bytebuffer_append),
56 CU_SuiteInfo bytebuffer_suite = {
"bytebuffer", NULL, NULL, bytebuffer_tests };
bytebuffer_t * bytebuffer_create_with_size(size_t size)
Allocate a new bytebuffer_t.
void bytebuffer_destroy(bytebuffer_t *s)
Free the bytebuffer_t and all memory managed within it.
int64_t bytebuffer_read_varint(bytebuffer_t *b)
Reads a signed varInt from the buffer.
void bytebuffer_append_varint(bytebuffer_t *b, const int64_t val)
Writes a signed varInt to the buffer.
void bytebuffer_reset_reading(bytebuffer_t *s)
Set the read cursor to the beginning.