Memory

BitVecByteSize

BitVecByteSize Description Get u64 of bitvector in bytes. This returns the actual memory used by the bit data.

Read More

BitVecClone

BitVecClone Description Create a deep copy of a bitvector. The returned bitvector must be deinitialized when no longer needed.

Read More

BitVecShrinkToFit

BitVecShrinkToFit Description Reduce bitvector capacity to match its current length. Frees any unused memory allocated beyond the current length.

Read More

BitVecSwap

BitVecSwap Description Efficiently swap the contents of two bitvectors. This is much faster than copying both bitvectors.

Read More

ALIGN_DOWN

ALIGN_DOWN Description Aligns the given value down to the nearest multiple of alignment.

Read More

ALIGN_DOWN_POW2

ALIGN_DOWN_POW2 Description Aligns the given value down to the nearest power-of-two multiple.

Read More

ALIGN_UP

ALIGN_UP Description Aligns the given value up to the nearest multiple of alignment.

Read More

ALIGN_UP_POW2

ALIGN_UP_POW2 Description Aligns the given value up to the nearest power-of-two multiple.

Read More

BitVecDeinit

BitVecDeinit Description Deinitialize bitvector and free all allocated memory. After calling this, the bitvector should not be used unless re-initialized.

Read More

BitVecReserve

BitVecReserve Description Reserve space for at least n bits in bitvector. Does not change the length, only ensures capacity.

Read More

FREE

FREE Description Safely deallocates memory and nullifies pointer.

Read More

Iter

Iter Description Memory iterators are there to allow reading regions of memory by remembering current read position and the size limit. With proper checking we can guarantee that we can never overflow or underflow when reading a memory region This also means that Iter objects are created for use with only one reading operation, and one object in their lifetime. The designed API does not allow modifications to the data Iter is iterating over FIELDS: - data : Pointer to memory we’re iterating over - length : Number of objects in memory. - pos : Current iterating position. - size : Alignment requirements (if-any), must be at-least 1 - dir : Iteration direction, -1 or 1

Read More

IterInit

IterInit Description Initialize default Iter object to iterate in forward direction.

Read More

IterInitAligned

IterInitAligned Description Initialize Iter with custom alignment to iterate in forward direction.

Read More

IterInitAlignedT

IterInitAlignedT Description Initialize Iter with custom alignment to iterate in forward direction.

Read More

IterInitRev

IterInitRev Description Initialize default Iter object to iterate in backward direction.

Read More

IterInitRevAligned

IterInitRevAligned Description Initialize Iter with custom alignment to iterate in backward direction.

Read More

IterInitRevAlignedT

IterInitRevAlignedT Description Initialize Iter with custom alignment to iterate in backward direction.

Read More

IterInitRevT

IterInitRevT Description Initialize default Iter object to iterate in backward direction.

Read More

IterInitT

IterInitT Description Initialize default Iter object to iterate in forward direction.

Read More

IterLength

IterLength Description Get total length of this Iter object

Read More

IterMove

IterMove Description Move current reading position of Iterator.

Read More

IterNext

IterNext Description Move to next element (wrapper for IterMove)

Read More

IterPeekAt

IterPeekAt Description Peek (not read) object from memory iter, given that - Provided Iter object is not NULL_ITER(mi). - There’s space left to read. - Length of object data is being read into is an integral multiple of size of data type this memory iter is iterating over. This is different from reading because it does not change current read position. This is good for making some decisions over data without changing the read position.

Read More

IterPos

IterPos Description If there’s space left to read in memory region we’re iterating over, then return a pointer to current read position.

Read More

IterPrev

IterPrev Description Move to previous element (wrapper for IterMove)

Read More

IterRead

IterRead Description Read object from memory iter, given that - Provided Iter object is not NULL_ITER(mi). - There’s space left to read. - Length of object data is being read into is an integral multiple of size of data type this memory iter is iterating over.

Read More

IterRemainingLength

IterRemainingLength Description Get remaining length left to read this memory iterator.

Read More

IterRemainingSize

IterRemainingSize Description Get remaining size left to read this memory iterator.

Read More

IterSize

IterSize Description Get total size of this Iter object

Read More

LVAL

LVAL Description Creates a temporary, addressable l-value from a given expression x.

Read More

MemCompare

MemCompare Description Compare memory regions.

Read More

NEW

NEW Description Allocates zero-initialized memory for a type.

Read More

SysDestroyProcess

SysDestroyProcess Description Clean up process information and free resources. Process must be completed or terminated before calling this.

Read More

SysMutexDestroy

SysMutexDestroy Description Destroy the provided mutex object. Once a mutex is destroyed, all resources held by it will be freed. Using it after this cal is UB.

Read More