Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Ralim/usb-pd
/ ringbuffer
Method
ringbuffer
include/ringbuffer.h:10–10 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
8
template <typename T, size_t size> class ringbuffer {
9
public:
10
explicit ringbuffer() : begin(0), end(0), wrap(false) {}
11
12
void push(const T *data) {
13
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected