mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-19 05:05:45 +01:00
refactor of mcx_delchunk to make things a bit more clear and flexible
This commit is contained in:
@@ -14,9 +14,8 @@ struct mcx_chunk {
|
||||
u32 time; // modification time in epoch seconds
|
||||
};
|
||||
|
||||
// TODO: should return some form of feedback about its success
|
||||
/* Deletes chunk `idx` from `buf`, moving all chunks downwards in the process. */
|
||||
void mcx_delchunk(u8 *restrict buf, int idx);
|
||||
size_t 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;
|
||||
|
||||
Reference in New Issue
Block a user