CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
35 void WriteTransactionInfo(
const model::TransactionInfo& transactionInfo, OutputStream& outputStream);
38 void ReadTransactionInfo(InputStream& inputStream, model::TransactionInfo& transactionInfo);
constexpr size_t size() const
Returns the array size.
Definition: ByteArray.h:55
void ReadTransactionInfos(InputStream &inputStream, model::TransactionInfosSet &transactionInfos)
Reads transaction infos from inputStream into transactionInfos.
Definition: TransactionInfoSerializer.cpp:67
DEFINE_OBSERVER(AccountAddress, model::AccountAddressNotification, [](const auto ¬ification, const auto &context) { DefaultAccountVisitor visitor(context);visitor.visit(notification.Address);})
void WriteTransactionInfos(const model::TransactionInfosSet &transactionInfos, OutputStream &outputStream)
Writes transactionInfos into outputStream.
Definition: TransactionInfoSerializer.cpp:61
DECLARE_SERVICE_REGISTRAR() HashCache()
Definition: HashCacheService.cpp:46
Hash256 MerkleComponentHash
Modified hash that should be used as a hash in the merkle tree.
Definition: EntityInfo.h:131
auto Read32(TIo &input)
Reads value from input.
Definition: PodIoUtils.h:74
void ReadTransactionInfo(InputStream &inputStream, model::TransactionInfo &transactionInfo)
Reads transaction info from inputStream into transactionInfo.
Definition: TransactionInfoSerializer.cpp:42
A transaction and its associated metadata.
Definition: EntityInfo.h:104
virtual void write(const RawBuffer &buffer)=0
constexpr const uint8_t * data() const noexcept
Returns a const pointer to the underlying array.
Definition: ByteArray.h:70
std::shared_ptr< const UnresolvedAddressSet > OptionalExtractedAddresses
Extracted addresses (optional).
Definition: EntityInfo.h:100
void Write64(TIo &output, uint64_t value)
Writes value into output.
Definition: PodIoUtils.h:36
std::unordered_set< TransactionInfo, EntityInfoHasher< const Transaction >, EntityInfoComparer< const Transaction > > TransactionInfosSet
Unordered set of transaction infos.
Definition: ContainerTypes.h:50
std::shared_ptr< TEntity > pEntity
Entity pointer.
Definition: EntityInfo.h:45
Definition: AddressExtractionExtension.cpp:28
auto Read64(TIo &input)
Reads value from input.
Definition: PodIoUtils.h:66
void Write32(TIo &output, uint32_t value)
Writes value into output.
Definition: PodIoUtils.h:42
Hash256 EntityHash
Entity hash.
Definition: EntityInfo.h:48
void WriteTransactionInfo(const model::TransactionInfo &transactionInfo, OutputStream &outputStream)
Writes transactionInfo into outputStream.
Definition: TransactionInfoSerializer.cpp:27
void WriteEntity(TIo &output, const model::SizePrefixedEntity &entity)
Writes size prefixed entity into output.
Definition: EntityIoUtils.h:31
Writer interface.
Definition: Stream.h:41