mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-17 09:35:46 +01:00
add function for computing the bytesize of the *.mcX file
This commit is contained in:
@@ -18,6 +18,9 @@ struct mcx_chunk {
|
||||
/* Deletes chunk `idx` from `buf`, moving all chunks downwards in the process. */
|
||||
void mcx_delchunk(u8 *restrict buf, int idx);
|
||||
|
||||
/* Computes the byte size of the `*.mcX` file in `buf` and returns it. */
|
||||
size_t mcx_calcsize(const u8 *restrict buf) NONNULL((1)) PURE;
|
||||
|
||||
/* indexes the chunks in an `*.mcX` file, writing `0x400` of entries to `chunks` */
|
||||
void mcx_index(const u8 *restrict buf, struct mcx_chunk *restrict chunks) NONNULL((1, 2));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user