|
freeBlock
|
The freeBlock function sets the specified blocks to vacant in the Bit Vector.
Vacant blocks are represented by 0 bits, while occupied blocks are represented by 1
bits. For example: The above freeBlock invocation sets the 3 blocks (starting at bit index i)
to be vacant. After this invocation: bitVector[i] = 0 bitVector[(+ i 1)] = 0 bitVector[(+ i 2)] = 0 When to use The freeBlock function is used to deallocate block space in a BitVector
used to manage a memory space or disk space.
(freeBlock bitVector i 3)
(freeBlock BitVector blockIndex blockCount) The block index after the last freed block.
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Example_BitVector_freeBlock_001
Here are the links to the data types of the function arguments. Here are also a number of links to functions having arguments with any of these data types.
You can always talk with the AIS at aiserver.sourceforge.net.
Name
Description
AIS Types BitVector The BitVector in which a consecutive string of blocks to be set vacant. BitVector blockIndex The starting bit index of the consecutive string of blocks to be set vacant. Integer blockCount The number of consecutive vacant blocks to be set vacant Integer
Returns:
Examples
Argument Types
Vector
BitVector
Integer
How do I contact the AIS team?