Bitcoin Core 30.99.0
P2P Digital Currency
Public Member Functions | List of all members
btck::Block Class Reference

#include <bitcoinkernel_wrapper.h>

Inheritance diagram for btck::Block:
[legend]
Collaboration diagram for btck::Block:
[legend]

Public Member Functions

 Block (const std::span< const std::byte > raw_block)
 
 Block (btck_Block *block)
 
size_t CountTransactions () const
 
TransactionView GetTransaction (size_t index) const
 
BlockHash GetHash () const
 
std::vector< std::byte > ToBytes () const
 
- Public Member Functions inherited from btck::Handle< btck_Block, btck_block_copy, btck_block_destroy >
 Handle (btck_Block *ptr)
 
 Handle (const Handle &other)
 
 Handle (Handle &&other) noexcept
 
 Handle (const ViewType &view)
 
Handleoperator= (const Handle &other)
 
Handleoperator= (Handle &&other) noexcept
 
 ~Handle ()
 
btck_Blockget ()
 
const btck_Blockget () const
 

Additional Inherited Members

- Protected Attributes inherited from btck::Handle< btck_Block, btck_block_copy, btck_block_destroy >
btck_Blockm_ptr
 

Detailed Description

Definition at line 704 of file bitcoinkernel_wrapper.h.

Constructor & Destructor Documentation

◆ Block() [1/2]

btck::Block::Block ( const std::span< const std::byte >  raw_block)
inline

Definition at line 707 of file bitcoinkernel_wrapper.h.

◆ Block() [2/2]

btck::Block::Block ( btck_Block block)
inline

Definition at line 712 of file bitcoinkernel_wrapper.h.

Member Function Documentation

◆ CountTransactions()

size_t btck::Block::CountTransactions ( ) const
inline

Definition at line 714 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:

◆ GetHash()

BlockHash btck::Block::GetHash ( ) const
inline

Definition at line 726 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:

◆ GetTransaction()

TransactionView btck::Block::GetTransaction ( size_t  index) const
inline

Definition at line 719 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:

◆ ToBytes()

std::vector< std::byte > btck::Block::ToBytes ( ) const
inline

Definition at line 731 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: