aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libssh/buffer.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/libssh/buffer.h b/include/libssh/buffer.h
index dec11739..4a50bcc7 100644
--- a/include/libssh/buffer.h
+++ b/include/libssh/buffer.h
@@ -23,7 +23,13 @@
#define BUFFER_H_
#include "libssh/libssh.h"
-/* Describes a buffer state */
+/*
+ * Describes a buffer state
+ * [XXXXXXXXXXXXDATA PAYLOAD XXXXXXXXXXXXXXXXXXXXXXXX]
+ * ^ ^ ^ ^]
+ * \_data points\_pos points here \_used points here | /
+ * here Allocated
+ */
struct ssh_buffer_struct {
char *data;
uint32_t used;