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()

Constructor for the Bytes32 contract.

Public Functions

push

function push(bytes32 elem) public virtual

Add a bytes32 data element to the concurrent array.

  • Parameters:

    • elem (type: bytes32): The bytes32 data element to add to the array.

pop

function pop() public virtual returns (bytes32)

Remove and return the last bytes32 data element from the concurrent array.

  • Returns:

    • bytes32: The last bytes32 data element from the array.

get

function get(uint256 idx) public virtual returns (bytes32)

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

function set(uint256 idx, bytes32 elem) public

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