CatapultServer  v0.5.0.1 (Elephant)
BlockElementParser.h
Go to the documentation of this file.
1 
21 #pragma once
23 
24 namespace catapult { namespace parsers {
25 
27  model::BlockElement ParseBlockElement(const RawBuffer& buffer, size_t& numBytesConsumed);
28 }}
catapult::model::TransactionContainer::Transactions
auto Transactions(EntityContainerErrorPolicy errorPolicy=EntityContainerErrorPolicy::Throw)
Definition: TransactionContainer.h:37
m_offset
size_t m_offset
Definition: BlockElementParser.cpp:64
catapult::model::BlockElement::EntityHash
Hash256 EntityHash
Entity hash.
Definition: Elements.h:66
BlockElementParser.h
catapult::model::BlockElement::Block
const model::Block & Block
Block entity.
Definition: Elements.h:63
catapult::model::BlockElement::GenerationHash
catapult::GenerationHash GenerationHash
Generation hash of the block.
Definition: Elements.h:69
Elements.h
m_buffer
RawBuffer m_buffer
Definition: BlockElementParser.cpp:63
catapult::model::BlockElement::Transactions
std::vector< TransactionElement > Transactions
Transaction elements.
Definition: Elements.h:75
catapult::parsers::ParseBlockElement
model::BlockElement ParseBlockElement(const RawBuffer &buffer, size_t &numBytesConsumed)
Parses a block element out of buffer and updates numBytesConsumed with the number of buffer bytes con...
Definition: BlockElementParser.cpp:68
CATAPULT_THROW_RUNTIME_ERROR
#define CATAPULT_THROW_RUNTIME_ERROR(MESSAGE)
Macro used to throw a catapult runtime error.
Definition: exceptions.h:167
catapult::model::BlockElement
Processing element for a block composed of a block and metadata.
Definition: Elements.h:55
catapult::model::Block
Binary layout for a block.
Definition: Block.h:69
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::utils::ByteArray< Hash256_Size, Hash256_tag >
catapult::utils::RawBuffer
BasicRawBuffer< const uint8_t > RawBuffer
A const binary buffer.
Definition: RawBuffer.h:62