|
AWS IoT Device SDK C++ v2 1.44.1
AWS IoT Device SDK C++ v2
|
#include <Stream.h>
Public Member Functions | |
| virtual | ~InputStream () |
| InputStream (const InputStream &)=delete | |
| InputStream & | operator= (const InputStream &)=delete |
| InputStream (InputStream &&)=delete | |
| InputStream & | operator= (InputStream &&)=delete |
| operator bool () const noexcept | |
| virtual bool | IsValid () const noexcept=0 |
| bool | Read (ByteBuf &dest) |
| bool | Seek (int64_t offset, StreamSeekBasis seekBasis) |
| bool | GetStatus (StreamStatus &status) |
| bool | GetLength (int64_t &length) |
Protected Member Functions | |
| InputStream (Aws::Crt::Allocator *allocator=ApiAllocator()) | |
| virtual bool | ReadImpl (ByteBuf &buffer) noexcept=0 |
| virtual bool | ReadSomeImpl (ByteBuf &buffer) noexcept=0 |
| virtual StreamStatus | GetStatusImpl () const noexcept=0 |
| virtual int64_t | GetLengthImpl () const noexcept=0 |
| virtual bool | SeekImpl (int64_t offset, StreamSeekBasis seekBasis) noexcept=0 |
| virtual int64_t | PeekImpl () const noexcept=0 |
| Protected Member Functions inherited from Aws::Crt::RefCounted< InputStream > | |
| RefCounted () | |
| ~RefCounted () | |
| void | AcquireRef () |
| void | ReleaseRef () |
Protected Attributes | |
| Allocator * | m_allocator |
| aws_input_stream | m_underlying_stream |
|
virtual |
|
delete |
|
delete |
|
protected |
|
inline |
Gets the stream's length. Some streams may not be able to answer this.
| length | output parameter for the length of the stream |
|
protectedpure virtualnoexcept |
Implemented in Aws::Crt::Io::StdIOStreamInputStream.
|
inline |
Gets the stream's current status
| status | output parameter for the stream's status |
|
protectedpure virtualnoexcept |
Implemented in Aws::Crt::Io::StdIOStreamInputStream.
|
pure virtualnoexcept |
Implemented in Aws::Crt::Io::StdIOStreamInputStream.
|
inlineexplicitnoexcept |
|
delete |
|
delete |
|
protectedpure virtualnoexcept |
Peeks the stream
Essentially calls peek on the underlying istream
Implemented in Aws::Crt::Io::StdIOStreamInputStream.
|
inline |
Reads data from the stream into a buffer
| dest | buffer to add the read data into |
|
protectedpure virtualnoexcept |
Implemented in Aws::Crt::Io::StdIOStreamInputStream.
|
protectedpure virtualnoexcept |
Implemented in Aws::Crt::Io::StdIOStreamInputStream.
|
inline |
Moves the head of the stream to a new location
| offset | how far to move, in bytes |
| seekBasis | what direction to move the head of stream |
|
protectedpure virtualnoexcept |
Seek's the stream to seekBasis based offset bytes.
It is expected, that if seeking to the beginning of a stream, all error's are cleared if possible.
|
protected |
|
protected |