VLCB SDK
An opinionated SDK for VLCB protocol
|
#include "vlcb/net/storage/packet_buf.h"
#include <assert.h>
#include <stdbool.h>
#include <string.h>
Go to the source code of this file.
Functions | |
void | vlcb_net_packetbuf_Init (VlcbPacketBuf *const c, size_t maxlen, size_t bucket_size) |
void | vlcb_net_packetbuf_Reset (VlcbPacketBuf *const c) |
bool | vlcb_net_packetbuf_IsEmpty (VlcbPacketBuf *const c) |
bool | vlcb_net_packetbuf_IsFull (VlcbPacketBuf *const c) |
size_t | vlcb_net_packetbuf_Capacity (VlcbPacketBuf *const c) |
size_t | vlcb_net_packetbuf_BucketSize (VlcbPacketBuf *const c) |
int | vlcb_net_packetbuf_Push (VlcbPacketBuf *const c, const void *data) |
int | vlcb_net_packetbuf_Pop (VlcbPacketBuf *const c, void *data) |
size_t vlcb_net_packetbuf_BucketSize | ( | VlcbPacketBuf *const | c | ) |
Definition at line 56 of file packet_buf.c.
size_t vlcb_net_packetbuf_Capacity | ( | VlcbPacketBuf *const | c | ) |
void vlcb_net_packetbuf_Init | ( | VlcbPacketBuf *const | c, |
size_t | maxlen, | ||
size_t | bucket_size ) |
Definition at line 7 of file packet_buf.c.
bool vlcb_net_packetbuf_IsEmpty | ( | VlcbPacketBuf *const | c | ) |
bool vlcb_net_packetbuf_IsFull | ( | VlcbPacketBuf *const | c | ) |
int vlcb_net_packetbuf_Pop | ( | VlcbPacketBuf *const | c, |
void * | data ) |
Definition at line 82 of file packet_buf.c.
int vlcb_net_packetbuf_Push | ( | VlcbPacketBuf *const | c, |
const void * | data ) |
void vlcb_net_packetbuf_Reset | ( | VlcbPacketBuf *const | c | ) |