Skip to content

bsail/ringbuffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ring Buffer

Build Status Coverage Status

Ring Buffer Implementation in C.

Fork of original library by filipecalasans.

Copyright (C) 2017 Filipe Calasans. All rights reserved.

Forked by Nikolay Nerovny, BMSTU, 2018.

The source code in src/ directory is ANSI C compilant.

This project targets to deliver a memory efficient implementation of Ring BUffer in C. Performance aspects were privileged over safety, for we don't make safety checks before manipulating the buffer. For example, we don't verify if the buffer is already full before inserting a new element, nor we verify if the buffer is empty before getting a new element. Users should be advised to do so in upper layers.

Using RingBuffer in C

You need to add the sources located at src/ into your project's search path. This implementation is well suited for embedded systems.

Build Tests

Use ceedling test:all to run unit tests.

Dependecies: