Add basic packet buffer definition

This commit is contained in:
Piper Pentagram 2025-05-13 13:18:22 -07:00
parent 0baae86beb
commit fb762b2aef
3 changed files with 25 additions and 2 deletions

11
include/packet_buffer.h Normal file
View 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();