VLCB SDK
An opinionated SDK for VLCB protocol
Loading...
Searching...
No Matches
packet_buf.h File Reference
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
Include dependency graph for packet_buf.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  VlcbPacketBuf
 

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)
 

Function Documentation

◆ vlcb_net_packetbuf_BucketSize()

size_t vlcb_net_packetbuf_BucketSize ( VlcbPacketBuf *const c)

Definition at line 56 of file packet_buf.c.

◆ vlcb_net_packetbuf_Capacity()

size_t vlcb_net_packetbuf_Capacity ( VlcbPacketBuf *const c)

Definition at line 40 of file packet_buf.c.

Here is the call graph for this function:

◆ vlcb_net_packetbuf_Init()

void vlcb_net_packetbuf_Init ( VlcbPacketBuf *const c,
size_t maxlen,
size_t bucket_size )

Definition at line 7 of file packet_buf.c.

◆ vlcb_net_packetbuf_IsEmpty()

bool vlcb_net_packetbuf_IsEmpty ( VlcbPacketBuf *const c)

Definition at line 23 of file packet_buf.c.

Here is the caller graph for this function:

◆ vlcb_net_packetbuf_IsFull()

bool vlcb_net_packetbuf_IsFull ( VlcbPacketBuf *const c)

Definition at line 29 of file packet_buf.c.

Here is the caller graph for this function:

◆ vlcb_net_packetbuf_Pop()

int vlcb_net_packetbuf_Pop ( VlcbPacketBuf *const c,
void * data )

Definition at line 82 of file packet_buf.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vlcb_net_packetbuf_Push()

int vlcb_net_packetbuf_Push ( VlcbPacketBuf *const c,
const void * data )

Definition at line 62 of file packet_buf.c.

Here is the caller graph for this function:

◆ vlcb_net_packetbuf_Reset()

void vlcb_net_packetbuf_Reset ( VlcbPacketBuf *const c)

Definition at line 16 of file packet_buf.c.

Here is the caller graph for this function: