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 Usage 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.
Expression:
Arguments
Name
Type
Description Argument: BitVector BitVector
The BitVector in which a consecutive string of blocks to be set vacant. Argument: blockIndex Integer
The starting bit index of the consecutive string of blocks to be set vacant. Argument: blockCount Integer
The number of consecutive vacant blocks to be set vacant
Returns:
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Here are the links to the data types of the function arguments.
Vector | BitVector | Integer |
Here are also a number of links to functions having arguments with any of these data types.
Analytic Information Server (AIS)AIS Component Systems
|