Bytes32
Concurrent Bytes32 Array
The Bytes32 contract
is a concurrent array specialized for storing bytes32 data. It inherits from the Base contract to utilize container functionalities for bytes32 storage.
Constructor
Bytes32()
Constructor for the Bytes32 contract.
Public Functions
push
Add a bytes32 data element to the concurrent array.
Parameters:
elem
(type:bytes32
): The bytes32 data element to add to the array.
pop
Remove and return the last bytes32 data element from the concurrent array.
Returns:
bytes32
: The last bytes32 data element from the array.
get
Retrieve the bytes32 data element at the given index from the concurrent array.
Parameters:
idx
(type:uint256
): The index of the bytes32 data element to retrieve.
Returns:
bytes32
: The bytes32 data element stored at the given index.
set
Set the bytes32 data element at the given index in the concurrent array.
Parameters:
idx
(type:uint256
): The index where the bytes32 data element should be stored.elem
(type:bytes32
): The bytes32 data element to be stored at the specified index.
Last updated