mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-17 03:45:46 +01:00
add NONNULL attributes to chunk deletion functions
This commit is contained in:
@@ -15,11 +15,11 @@ struct mcx_chunk {
|
||||
};
|
||||
|
||||
/* Deletes chunk `idx` from `buf`, moving all chunks downwards in the process. */
|
||||
size_t mcx_delchunk(u8 *restrict buf, int idx);
|
||||
size_t mcx_delchunk(u8 *restrict buf, int idx) NONNULL((1));
|
||||
|
||||
/* Deletes `chunkc` chunks specified in `chunks` from the `*.mcX` file.
|
||||
* This is done in a way to perform minimal memmove operations. */
|
||||
size_t mcx_delchunk_bulk(u8 *restrict buf, const u16 *restrict chunks, int chunkc);
|
||||
size_t mcx_delchunk_bulk(u8 *restrict buf, const u16 *restrict chunks, int chunkc) NONNULL((1, 2));
|
||||
|
||||
/* 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