Non‐owning view over a btck_BlockHash.

Synopsis

Declared in <kernel/bitcoinkernel_wrapper.h>

class BlockHashView
    : public View<btck_BlockHash>
    , public BlockHashApi<BlockHashView>

Base Classes

Name

Description

View<btck_BlockHash>

Non‐owning view over a const C handle of type CType.

BlockHashApi<BlockHashView>

CRTP mixin adding block‐hash operations shared by the view and owning types.

Member Functions

Name

Description

BlockHashView [constructor]

Constructs a view over ptr.

ToBytes

Returns the raw 32‐byte block hash.

get

Returns the borrowed C handle.

operator==

Compares two block hashes for equality.

operator!=

Compares two block hashes for inequality.

Protected Data Members

Name

Description

m_ptr

The borrowed C handle.

Created with MrDocs