ring_buf
Loading...
Searching...
No Matches
ring_buf_circ.h
Go to the documentation of this file.
1/*
2 * SPDX-License-Identifier: MIT
3 * SPDX-FileCopyrightText: 2024, Roy Ratcliffe, Northumberland, United Kingdom
4 */
31#ifndef __RING_BUF_CIRC_H__
32#define __RING_BUF_CIRC_H__
33
34#include <stddef.h>
35
36struct ring_buf;
37
49int ring_buf_put_circ(struct ring_buf *buf, void *data, size_t size);
50
51#endif /* __RING_BUF_CIRC_H__ */
int ring_buf_put_circ(struct ring_buf *buf, void *data, size_t size)
Put data into a circular buffer.
Ring buffer instance.
Definition ring_buf.h:128
ring_buf_size_t size
Size of the ring buffer.
Definition ring_buf.h:139