#include <FairMQResizableBuffer.h>
Inherits OutputStream.
|
| FairMQOutputStream (const std::shared_ptr< ResizableBuffer > &buffer) |
|
| ~FairMQOutputStream () override=default |
|
Status | Close () override |
| Close the stream, preserving the buffer (retrieve it with Finish()).
|
|
bool | closed () const override |
|
Result< int64_t > | Tell () const override |
|
Status | Write (const void *data, int64_t nbytes) override |
|
Result< std::shared_ptr< Buffer > > | Finish () |
| Close the stream and return the buffer.
|
|
Status | Reset (int64_t initial_capacity=1024, MemoryPool *pool=default_memory_pool()) |
| Initialize state of OutputStream with newly allocated memory and set position to 0.
|
|
int64_t | capacity () const |
|
|
static Result< std::shared_ptr< FairMQOutputStream > > | Create (int64_t initial_capacity=4096, MemoryPool *pool=default_memory_pool()) |
| Create in-memory output stream with indicated capacity using a memory pool.
|
|
Definition at line 30 of file FairMQResizableBuffer.h.
◆ FairMQOutputStream()
o2::framework::FairMQOutputStream::FairMQOutputStream |
( |
const std::shared_ptr< ResizableBuffer > & |
buffer | ) |
|
|
explicit |
◆ ~FairMQOutputStream()
o2::framework::FairMQOutputStream::~FairMQOutputStream |
( |
| ) |
|
|
overridedefault |
◆ capacity()
int64_t o2::framework::FairMQOutputStream::capacity |
( |
| ) |
const |
|
inline |
◆ Close()
Status o2::framework::FairMQOutputStream::Close |
( |
| ) |
|
|
override |
◆ closed()
bool o2::framework::FairMQOutputStream::closed |
( |
| ) |
const |
|
override |
◆ Create()
Result< std::shared_ptr< FairMQOutputStream > > o2::framework::FairMQOutputStream::Create |
( |
int64_t |
initial_capacity = 4096 , |
|
|
MemoryPool * |
pool = default_memory_pool() |
|
) |
| |
|
static |
Create in-memory output stream with indicated capacity using a memory pool.
- Parameters
-
[in] | initial_capacity | the initial allocated internal capacity of the OutputStream |
[in,out] | pool | a MemoryPool to use for allocations |
- Returns
- the created stream
Definition at line 38 of file FairMQResizableBuffer.cxx.
◆ Finish()
Result< std::shared_ptr< Buffer > > o2::framework::FairMQOutputStream::Finish |
( |
| ) |
|
◆ Reset()
Status o2::framework::FairMQOutputStream::Reset |
( |
int64_t |
initial_capacity = 1024 , |
|
|
MemoryPool * |
pool = default_memory_pool() |
|
) |
| |
Initialize state of OutputStream with newly allocated memory and set position to 0.
- Parameters
-
[in] | initial_capacity | the starting allocated capacity |
[in,out] | pool | the memory pool to use for allocations |
- Returns
- Status
Definition at line 47 of file FairMQResizableBuffer.cxx.
◆ Tell()
Result< int64_t > o2::framework::FairMQOutputStream::Tell |
( |
| ) |
const |
|
override |
◆ Write()
Status o2::framework::FairMQOutputStream::Write |
( |
const void * |
data, |
|
|
int64_t |
nbytes |
|
) |
| |
|
override |
The documentation for this class was generated from the following files: