|
libclod
C library for interacting with NBTs, region files, LOD data and other things.
|
Go to the source code of this file.
Classes | |
| struct | clod_region_opts |
Macros | |
| #define | CLOD_REGION_VERSION 1 |
Open modes | |
| #define | CLOD_REGION_MODE_RDONLY 1 |
| #define | CLOD_REGION_MODE_RDWR 2 |
Limits | |
| #define | CLOD_REGION_PREFIX_MAX 30 |
| #define | CLOD_REGION_EXTENSION_MAX 10 |
| #define | CLOD_REGION_DIMENSIONS_MAX 10 |
Enumerations | |
| enum | clod_region_result { CLOD_REGION_OK = 0 , CLOD_REGION_INVALID_USAGE = 1 , CLOD_REGION_MALFORMED = 2 , CLOD_REGION_NOT_FOUND = 3 } |
Functions | |
| struct clod_region * | clod_region_open (const char *path, const struct clod_region_opts *opts) |
| enum clod_region_result | clod_region_read (struct clod_region *region, const int64_t *pos, uint8_t *buff, size_t buff_size, size_t *size) |
| enum clod_region_result | clod_region_write (struct clod_region *region, const int64_t *pos, const uint8_t *buff, size_t buff_size) |
| enum clod_region_result | clod_region_mtime (struct clod_region *region, const int64_t *pos, time_t *mtime) |
| struct clod_region_iter * | clod_region_iter_start (struct clod_region *region) |
| bool | clod_region_iter_next (struct clod_region_iter *iter, int64_t *pos) |
| void | clod_region_iter_end (struct clod_region_iter *iter) |
| enum clod_region_result | clod_region_close (struct clod_region *region) |