CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
40 void flush()
override;
55 bool eof()
const override;
std::vector< uint8_t > & m_buffer
Definition: MemoryBlockStorage.cpp:161
Provides a buffered output stream around raw file.
Definition: BufferedFileStream.h:32
Wrapper for low-level i/o operations on files.
Definition: RawFile.h:49
#define CATAPULT_THROW_AND_LOG_2(TYPE, MESSAGE, PARAM1, PARAM2)
Macro used to throw a catapult exception with two parameters.
Definition: exceptions.h:159
void write(const RawBuffer &buffer) override
Definition: BufferedFileStream.cpp:38
constexpr size_t Default_Stream_Buffer_Size
Default stream buffer size.
Definition: BufferedFileStream.h:29
RawFile & m_rawFile
Definition: FileBlockStorage.cpp:193
RawFile m_rawFile
Definition: BufferedFileStream.h:43
BufferedOutputFileStream(RawFile &&rawFile, size_t bufferSize=Default_Stream_Buffer_Size)
Creates a buffered output stream around rawFile with an optional internal buffer size (bufferSize).
Definition: BufferedFileStream.cpp:27
uint64_t position() const
Returns position in the file.
Definition: RawFile.cpp:338
BasicRawBuffer< uint8_t > MutableRawBuffer
A mutable binary buffer.
Definition: RawBuffer.h:65
std::vector< uint8_t > m_buffer
Definition: BufferedFileStream.h:44
size_t m_bufferPosition
Definition: BufferedFileStream.h:45
uint64_t size() const
Returns size of the file.
Definition: RawFile.cpp:334
void flush() override
Definition: BufferedFileStream.cpp:33
Definition: AddressExtractionExtension.cpp:28
Base class for all catapult exceptions that derives from both std::exception and boost::exception.
Definition: exceptions.h:42
void write(const RawBuffer &dataBuffer)
Definition: RawFile.cpp:305
void read(const MutableRawBuffer &dataBuffer)
Definition: RawFile.cpp:313
Writer interface.
Definition: Stream.h:41
BasicRawBuffer< const uint8_t > RawBuffer
A const binary buffer.
Definition: RawBuffer.h:62