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
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,17 +16,17 @@ A ring buffer is used when passing asynchronous io between two threads. In the c
16
16
17
17
### Constructor
18
18
19
-
'''
19
+
```
20
20
RingBuf* RingBuf_new(int size, int len);
21
-
'''
21
+
```
22
22
23
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.
24
24
This would be the equivalent of `new RingBuf(int size, int len)` in C++.
25
25
26
26
### Deconstructor
27
27
28
-
'''
28
+
```
29
29
int RingBuf_delete(RingBuf *self);
30
-
'''
30
+
```
31
31
32
32
Deletes the RingBuf, and frees up all the memory associated with it.
0 commit comments