Files
barecopper/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