Introduce bytebuf util

Add a ring-buffer for bytes. It will be useful for buffering audio.
This commit is contained in:
Romain Vimont
2023-02-25 14:32:02 +01:00
parent 048ff837f7
commit 96a05383b9
4 changed files with 279 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ src = [
'src/version.c',
'src/video_buffer.c',
'src/util/acksync.c',
'src/util/bytebuf.c',
'src/util/file.c',
'src/util/intmap.c',
'src/util/intr.c',
@@ -260,6 +261,10 @@ if get_option('buildtype') == 'debug'
['test_binary', [
'tests/test_binary.c',
]],
['test_bytebuf', [
'tests/test_bytebuf.c',
'src/util/bytebuf.c',
]],
['test_cbuf', [
'tests/test_cbuf.c',
]],