hash_2n_n_mask

Create the parent node of two sibling nodes in a binary hash tree. Equals hash_2n_n_mask in ref.

  1. H hash_2n_n_mask(in ref H left, in ref H right, in ref M bitmask)
    package @safe @nogc pure nothrow
    H
    hash_2n_n_mask
    (
    alias hash_2n_n
    H
    M
    )
    (
    in ref H left
    ,
    in ref H right
    ,
    in ref M bitmask
    )
    if (
    2 * H.length == M.length &&
    is_hash_2n_n!(hash_2n_n, H)
    )
  2. H hash_2n_n_mask(in ref H left, in ref H right, in ref H bitmask_left, in ref H bitmask_right)

Parameters

left
Type: H

Hash of left node.

right
Type: H

Hash of right node.

bitmask
Type: M

A bitmask for both nodes.

Meta