ldas-tools-framecpp
2.6.2
|
Handles a read-only memory stream. More...
#include <BaseMemoryBuffer.hh>
Public Types | |
typedef std::streambuf | buffer_type |
typedef buffer_type::char_type | char_type |
typedef buffer_type::pos_type | pos_type |
typedef buffer_type::off_type | off_type |
typedef buffer_type::pos_type | size_type |
typedef buffer_type::int_type | int_type |
Public Member Functions | |
ROMemoryStreamBuf () | |
Default constructor. More... | |
Protected Member Functions | |
virtual pos_type | seekpos (pos_type Pos, std::ios_base::openmode Which) |
Repositions the next pointer in the input sequence. More... | |
virtual pos_type | seekoff (off_type Off, std::ios_base::seekdir Way, std::ios_base::openmode Which) |
Repositions the next pointer in the input sequence. More... | |
virtual buffer_type * | setbuf (char_type *S, std::streamsize N) |
Provides the section of memory from which to read. More... | |
Handles a read-only memory stream.
This class is to be used with an IFrameStream to provide a mechanism to read frames that are currently in memory.
typedef std::streambuf FrameCPP::Common::ROMemoryStreamBuf::buffer_type |
typedef buffer_type::char_type FrameCPP::Common::ROMemoryStreamBuf::char_type |
typedef buffer_type::int_type FrameCPP::Common::ROMemoryStreamBuf::int_type |
typedef buffer_type::off_type FrameCPP::Common::ROMemoryStreamBuf::off_type |
typedef buffer_type::pos_type FrameCPP::Common::ROMemoryStreamBuf::pos_type |
typedef buffer_type::pos_type FrameCPP::Common::ROMemoryStreamBuf::size_type |
FrameCPP::Common::ROMemoryStreamBuf::ROMemoryStreamBuf | ( | ) |
|
protectedvirtual |
Repositions the next pointer in the input sequence.
[in] | Off | Relative position to set the position indicator to. | ||||||||
[in] | Way | Defines base position to apply relative offset to. It can be one of the following constants:
| ||||||||
[in] | Which | Defines which of the input sequences to affect. It can be one or a combination of the following constants:
|
|
protectedvirtual |
Repositions the next pointer in the input sequence.
[in] | Pos | Absolute position to set the position indicator to. | ||||||
[in] | Which | Defines which of the input sequences to affect. It can be one or a combination of the following constants:
|
|
protectedvirtual |
Provides the section of memory from which to read.
[in] | S | Starting address of memory to manage as input buffer. |
[in] | N | Size of memory buffer. |