summaryrefslogtreecommitdiffstats
path: root/include/zix/ring.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-07-01 00:05:22 -0400
committerDavid Robillard <d@drobilla.net>2021-07-17 19:58:17 -0400
commit4b266e2f39a8d3a49b58c861c7fd852911cf7fb0 (patch)
treedc12d618dc52b640b82e522917b238e38af033b3 /include/zix/ring.h
parent46f9327b06e866e3180c1924a0afa0afd8b0b5c5 (diff)
downloadzix-4b266e2f39a8d3a49b58c861c7fd852911cf7fb0.tar.gz
zix-4b266e2f39a8d3a49b58c861c7fd852911cf7fb0.tar.bz2
zix-4b266e2f39a8d3a49b58c861c7fd852911cf7fb0.zip
Use line comments where appropriate
Diffstat (limited to 'include/zix/ring.h')
-rw-r--r--include/zix/ring.h32
1 files changed, 8 insertions, 24 deletions
diff --git a/include/zix/ring.h b/include/zix/ring.h
index a375cac..2650f07 100644
--- a/include/zix/ring.h
+++ b/include/zix/ring.h
@@ -50,9 +50,7 @@ ZIX_MALLOC_API
ZixRing*
zix_ring_new(uint32_t size);
-/**
- Destroy a ring.
-*/
+/// Destroy a ring
ZIX_API
void
zix_ring_free(ZixRing* ring);
@@ -80,51 +78,37 @@ ZIX_API
void
zix_ring_reset(ZixRing* ring);
-/**
- Return the number of bytes of space available for reading.
-*/
+/// Return the number of bytes of space available for reading
ZIX_CONST_API
uint32_t
zix_ring_read_space(const ZixRing* ring);
-/**
- Return the number of bytes of space available for writing.
-*/
+/// Return the number of bytes of space available for writing
ZIX_CONST_API
uint32_t
zix_ring_write_space(const ZixRing* ring);
-/**
- Return the capacity (i.e. total write space when empty).
-*/
+/// Return the capacity (i.e. total write space when empty)
ZIX_CONST_API
uint32_t
zix_ring_capacity(const ZixRing* ring);
-/**
- Read from the ring without advancing the read head.
-*/
+/// Read from the ring without advancing the read head
ZIX_API
uint32_t
zix_ring_peek(ZixRing* ring, void* dst, uint32_t size);
-/**
- Read from the ring and advance the read head.
-*/
+/// Read from the ring and advance the read head
ZIX_API
uint32_t
zix_ring_read(ZixRing* ring, void* dst, uint32_t size);
-/**
- Skip data in the ring (advance read head without reading).
-*/
+/// Skip data in the ring (advance read head without reading)
ZIX_API
uint32_t
zix_ring_skip(ZixRing* ring, uint32_t size);
-/**
- Write data to the ring.
-*/
+/// Write data to the ring
ZIX_API
uint32_t
zix_ring_write(ZixRing* ring, const void* src, uint32_t size);