Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Circular buffer

Prerequisites

  1. Complete this README.md by documenting how to build and run.
  2. Use any build tool (e.g. make).
  3. The code should compile cleanly, no errors/warnings.
  4. Static memory only, no malloc()/new.
  5. Open a pull request with your changes.
  6. Use C++

Coding task

  1. Write a circular buffer class with the following features:
    1. Compile time fixed size
    2. Static memory allocation only
    3. Generic data type (e.g. uint8_t)
    4. Two put(data) overflow behaviors: overwrite and discard data.
  2. Write tests showing your circular buffer in action.

Build instructions

This solution is using the googletest framework for C++ unit tests.

  1. Clone googletest into the root folder of this project via git clone https://github.com/google/googletest.git
  2. Run make check inside the tests folder in order to compile and run the tests.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.