#include <PreallocatedStreamBuf.h>
|
pos_type | seekoff (off_type off, std::ios_base::seekdir dir, std::ios_base::openmode which=std::ios_base::in|std::ios_base::out) override |
|
pos_type | seekpos (pos_type pos, std::ios_base::openmode which=std::ios_base::in|std::ios_base::out) override |
|
this is a stream buf to use with std::iostream that uses a preallocated buffer under the hood.
Definition at line 22 of file PreallocatedStreamBuf.h.
◆ PreallocatedStreamBuf() [1/3]
Aws::Utils::Stream::PreallocatedStreamBuf::PreallocatedStreamBuf |
( |
unsigned char * |
buffer, |
|
|
uint64_t |
lengthToRead |
|
) |
| |
Initialize the stream buffer with a pointer to your buffer. This class never takes ownership of the buffer. It is your responsibility to delete it once the stream is no longer in use.
- Parameters
-
buffer | buffer to initialize from. |
lengthToRead | length in bytes to actually use in the buffer (e.g. you have a 1kb buffer, but only want the stream to see 500 b of it. |
◆ PreallocatedStreamBuf() [2/3]
◆ PreallocatedStreamBuf() [3/3]
◆ GetBuffer()
unsigned char * Aws::Utils::Stream::PreallocatedStreamBuf::GetBuffer |
( |
| ) |
|
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ seekoff()
pos_type Aws::Utils::Stream::PreallocatedStreamBuf::seekoff |
( |
off_type |
off, |
|
|
std::ios_base::seekdir |
dir, |
|
|
std::ios_base::openmode |
which = std::ios_base::in|std::ios_base::out |
|
) |
| |
|
overrideprotected |
◆ seekpos()
pos_type Aws::Utils::Stream::PreallocatedStreamBuf::seekpos |
( |
pos_type |
pos, |
|
|
std::ios_base::openmode |
which = std::ios_base::in|std::ios_base::out |
|
) |
| |
|
overrideprotected |
The documentation for this class was generated from the following file: