We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
RBS_BUFFER_DEFAULT_CAPACITY
1 parent ce48664 commit 76c06b8Copy full SHA for 76c06b8
2 files changed
include/rbs/util/rbs_buffer.h
@@ -8,12 +8,6 @@
8
#include <stdlib.h>
9
#include <string.h>
10
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
-
17
/**
18
* A rbs_buffer_t is a simple memory buffer that stores data in a contiguous block of memory.
19
*/
src/util/rbs_buffer.c
@@ -1,6 +1,12 @@
1
#include "rbs/util/rbs_buffer.h"
2
#include "rbs/util/rbs_assert.h"
3
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
+ */
+#define RBS_BUFFER_DEFAULT_CAPACITY 128
+
bool rbs_buffer_init(rbs_allocator_t *allocator, rbs_buffer_t *buffer) {
*buffer = (rbs_buffer_t) {
.length = 0,
0 commit comments