Add basic packet buffer definition
This commit is contained in:
parent
0baae86beb
commit
fb762b2aef
3 changed files with 25 additions and 2 deletions
11
include/packet_buffer.h
Normal file
11
include/packet_buffer.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#pragma once
|
||||
#include <stddef.h>
|
||||
|
||||
#define PACKET_BUFFER_SIZE 512
|
||||
|
||||
struct PacketBuffer {
|
||||
char buf[PACKET_BUFFER_SIZE];
|
||||
size_t pos;
|
||||
};
|
||||
|
||||
struct PacketBuffer *new_packet_buffer();
|
||||
Loading…
Add table
Add a link
Reference in a new issue