CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
36 m_output.append(reinterpret_cast<const char*>(buffer.pData), buffer.Size);
44 const std::string&
str()
const {
void flush() override
Definition: StringOutputStream.h:39
std::string m_output
Definition: StringOutputStream.h:49
model::AccountAddressNotification Notification
Definition: AddressValidator.cpp:27
const std::string & str() const
Returns underlying string.
Definition: StringOutputStream.h:44
StringOutputStream(size_t capacity)
Creates string output stream with reserved capacity.
Definition: StringOutputStream.h:30
void write(const RawBuffer &buffer) override
Definition: StringOutputStream.h:35
Definition: AddressExtractionExtension.cpp:28
String output stream.
Definition: StringOutputStream.h:27
DEFINE_STATELESS_VALIDATOR(TransactionFee, [](const auto ¬ification) { if(notification.Fee > notification.MaxFee) return Failure_Core_Invalid_Transaction_Fee;constexpr auto Max_Raw_Block_Fee_Multiplier=static_cast< uint64_t >(std::numeric_limits< BlockFeeMultiplier::ValueType >::max());return notification.MaxFee.unwrap() > Max_Raw_Block_Fee_Multiplier *notification.TransactionSize ? Failure_Core_Invalid_Transaction_Fee :ValidationResult::Success;})
Writer interface.
Definition: Stream.h:41
BasicRawBuffer< const uint8_t > RawBuffer
A const binary buffer.
Definition: RawBuffer.h:62