#include <ScratchBuffer.h>
Inheritance diagram for oasys::ScratchBuffer< _memory_t, _static_size >:
Definition at line 70 of file ScratchBuffer.h.
Public Member Functions | |
ScratchBuffer (size_t size=0) | |
Standard default constructor. | |
ScratchBuffer (const ScratchBuffer &other) | |
We need to implement our own copy constructor to make sure to call the right reserve() call. | |
virtual | ~ScratchBuffer () |
The destructor clears the buf_ pointer if pointing at the static segment so ExpandableBuffer doesn't try to delete it. | |
_memory_t | buf (size_t size=0) |
| |
const _memory_t | buf () const |
| |
virtual void | reserve (size_t size=0) |
virtual from ExpandableBuffer | |
Private Member Functions | |
bool | using_malloc () const |
Private Attributes | |
char | static_buf_ [_static_size] |
oasys::ScratchBuffer< _memory_t, _static_size >::ScratchBuffer | ( | size_t | size = 0 |
) | [inline] |
oasys::ScratchBuffer< _memory_t, _static_size >::ScratchBuffer | ( | const ScratchBuffer< _memory_t, _static_size > & | other | ) | [inline] |
We need to implement our own copy constructor to make sure to call the right reserve() call.
Definition at line 86 of file ScratchBuffer.h.
virtual oasys::ScratchBuffer< _memory_t, _static_size >::~ScratchBuffer | ( | ) | [inline, virtual] |
The destructor clears the buf_ pointer if pointing at the static segment so ExpandableBuffer doesn't try to delete it.
Definition at line 101 of file ScratchBuffer.h.
_memory_t oasys::ScratchBuffer< _memory_t, _static_size >::buf | ( | size_t | size = 0 |
) | [inline] |
Definition at line 108 of file ScratchBuffer.h.
Referenced by dtn::BlockProcessor::consume_preamble(), dtn::ProphetTLV::create_bundle(), dtn::CustodySignal::create_custody_signal(), dtn::BundleStatusReport::create_status_report(), dtn::BlockInfo::data(), oasys::FileSystemTable::del(), dtn::AdminRegistration::deliver_bundle(), dtn::ProphetTLV::deserialize(), dtn::BlockInfo::flags(), dtn::PreviousHopBlockProcessor::generate(), oasys::MemoryTable::get(), oasys::FileSystemTable::get(), oasys::BerkeleyDBTable::get(), oasys::MemoryIterator::get_key(), dtntunnel::UDPTunnel::handle_bundle(), dtntunnel::TCPTunnel::Connection::handle_bundle(), dtntunnel::TCPTunnel::handle_bundle(), dtntunnel::DTNTunnel::handle_bundle(), dtn::APIClient::handle_recv(), dtn::AnnounceBundle::parse_announce_bundle(), dtn::BundleStatusReport::parse_status_report(), oasys::TextUnmarshal::process(), oasys::FileSystemTable::put(), oasys::BerkeleyDBTable::put(), dtntunnel::UDPTunnel::Listener::run(), dtntunnel::TCPTunnel::Connection::run(), dtn::IPDiscovery::run(), dtntunnel::DTNTunnel::send_bundle(), dtn::BlockInfo::serialize(), dtn::BlockInfo::set_flag(), and dtn::BlockInfo::type().
const _memory_t oasys::ScratchBuffer< _memory_t, _static_size >::buf | ( | ) | const [inline] |
virtual void oasys::ScratchBuffer< _memory_t, _static_size >::reserve | ( | size_t | size = 0 |
) | [inline, virtual] |
virtual from ExpandableBuffer
Reimplemented from oasys::ExpandableBuffer.
Definition at line 121 of file ScratchBuffer.h.
Referenced by oasys::ScratchBuffer< u_char * >::buf(), oasys::ScratchBuffer< _memory_t, 0 >::buf(), dtn::PreviousHopBlockProcessor::generate(), dtn::APIClient::handle_recv(), dtn::BundleStatusReport::parse_status_report(), dtntunnel::TCPTunnel::Connection::run(), oasys::ScratchBuffer< u_char * >::ScratchBuffer(), and dtn::BlockInfo::serialize().
bool oasys::ScratchBuffer< _memory_t, _static_size >::using_malloc | ( | ) | const [inline, private] |
Definition at line 147 of file ScratchBuffer.h.
Referenced by oasys::ScratchBuffer< u_char * >::reserve(), oasys::ScratchBuffer< u_char * >::ScratchBuffer(), and oasys::ScratchBuffer< u_char * >::~ScratchBuffer().
char oasys::ScratchBuffer< _memory_t, _static_size >::static_buf_[_static_size] [private] |
Definition at line 146 of file ScratchBuffer.h.
Referenced by oasys::ScratchBuffer< u_char * >::reserve(), oasys::ScratchBuffer< u_char * >::ScratchBuffer(), and oasys::ScratchBuffer< u_char * >::using_malloc().