You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,13 +15,18 @@ A ring buffer is used when passing asynchronous io between two threads. In the c
15
15
16
16
17
17
### Constructor
18
-
`RingBuf* RingBuf_new(int size, int len);`
18
+
19
+
'''
20
+
RingBuf* RingBuf_new(int size, int len);
21
+
'''
19
22
20
23
Creates a new RingBuf object of len elements that are size bytes each. A poetinter to the new RingBuf object is returned on success. On failure (lack of memory), a null pointer is returned.
21
24
This would be the equivalent of `new RingBuf(int size, int len)` in C++.
22
25
23
26
### Deconstructor
24
27
25
-
`int RingBuf_delete(RingBuf *self);`
28
+
'''
29
+
int RingBuf_delete(RingBuf *self);
30
+
'''
26
31
27
32
Deletes the RingBuf, and frees up all the memory associated with it.
0 commit comments