File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 88#include <stdlib.h>
99#include <string.h>
1010
11- /**
12- * The default capacity of a rbs_buffer_t.
13- * If the buffer needs to grow beyond this capacity, it will be doubled.
14- */
15- #define RBS_BUFFER_DEFAULT_CAPACITY 128
16-
1711/**
1812 * A rbs_buffer_t is a simple memory buffer that stores data in a contiguous block of memory.
1913 */
Original file line number Diff line number Diff line change 11#include "rbs/util/rbs_buffer.h"
22#include "rbs/util/rbs_assert.h"
33
4+ /**
5+ * The default capacity of a rbs_buffer_t.
6+ * If the buffer needs to grow beyond this capacity, it will be doubled.
7+ */
8+ #define RBS_BUFFER_DEFAULT_CAPACITY 128
9+
410bool rbs_buffer_init (rbs_allocator_t * allocator , rbs_buffer_t * buffer ) {
511 * buffer = (rbs_buffer_t ) {
612 .length = 0 ,
You can’t perform that action at this time.
0 commit comments