setBlock
|
The setBlock function sets the specified blocks to occupied 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 occupied. After this invocation: Usage The setBlock function is used to allocate block space in a BitVector used to
manage a memory space or disk space.
(setBlock bitVector i 3)
bitVector[i] = 1
bitVector[(+ i 1)] = 1
bitVector[(+ i 2)] = 1
(setBlock bitVector blockIndex blockCount) The block index after the last occupied block.
Expression:
Arguments
Name
Type
Description Argument: bitVector BitVector
The BitVector in which a consecutive string of blocks to be set occupied. Argument: blockIndex Integer
The starting bit index of the consecutive string of blocks to be set occupied. Argument: blockCount Integer
The number of consecutive blocks to be set occupied.
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 | Boolean |
Here are also a number of links to functions having arguments with any of these data types.
Analytic Information Server (AIS)AIS Component Systems
|