1
0
mirror of https://github.com/p2r3/bareiron.git synced 2025-10-01 23:25:09 +02:00
Files
bareiron/include/varnum.h
2025-08-20 13:42:56 +03:00

15 lines
268 B
C

#ifndef H_VARNUM
#define H_VARNUM
#include <stdint.h>
#define SEGMENT_BITS 0x7F
#define CONTINUE_BIT 0x80
#define VARNUM_ERROR 0xFFFFFFFF
int32_t readVarInt (int client_fd);
int sizeVarInt (uint32_t value);
void writeVarInt (int client_fd, uint32_t value);
#endif