AWS IoT Device SDK C++ v2 1.44.2
AWS IoT Device SDK C++ v2
Loading...
Searching...
No Matches
Aws::Crt::Io::StdIOStreamInputStream Class Reference

#include <Stream.h>

Inheritance diagram for Aws::Crt::Io::StdIOStreamInputStream:
Aws::Crt::Io::InputStream Aws::Crt::RefCounted< InputStream >

Public Member Functions

 StdIOStreamInputStream (std::shared_ptr< Aws::Crt::Io::IStream > stream, Aws::Crt::Allocator *allocator=ApiAllocator()) noexcept
bool IsValid () const noexcept override
Public Member Functions inherited from Aws::Crt::Io::InputStream
virtual ~InputStream ()
 InputStream (const InputStream &)=delete
InputStreamoperator= (const InputStream &)=delete
 InputStream (InputStream &&)=delete
InputStreamoperator= (InputStream &&)=delete
 operator bool () const noexcept
bool Read (ByteBuf &dest)
bool Seek (int64_t offset, StreamSeekBasis seekBasis)
bool GetStatus (StreamStatus &status)
bool GetLength (int64_t &length)

Protected Member Functions

bool ReadImpl (ByteBuf &buffer) noexcept override
bool ReadSomeImpl (ByteBuf &buffer) noexcept override
StreamStatus GetStatusImpl () const noexcept override
int64_t GetLengthImpl () const noexcept override
bool SeekImpl (OffsetType offsetType, StreamSeekBasis seekBasis) noexcept override
int64_t PeekImpl () const noexcept override
Protected Member Functions inherited from Aws::Crt::Io::InputStream
 InputStream (Aws::Crt::Allocator *allocator=ApiAllocator())
virtual bool SeekImpl (int64_t offset, StreamSeekBasis seekBasis) noexcept=0
Protected Member Functions inherited from Aws::Crt::RefCounted< InputStream >
 RefCounted ()
 ~RefCounted ()
void AcquireRef ()
void ReleaseRef ()

Additional Inherited Members

Protected Attributes inherited from Aws::Crt::Io::InputStream
Allocatorm_allocator
aws_input_stream m_underlying_stream

Constructor & Destructor Documentation

◆ StdIOStreamInputStream()

Aws::Crt::Io::StdIOStreamInputStream::StdIOStreamInputStream ( std::shared_ptr< Aws::Crt::Io::IStream > stream,
Aws::Crt::Allocator * allocator = ApiAllocator() )
noexcept

Member Function Documentation

◆ GetLengthImpl()

int64_t Aws::Crt::Io::StdIOStreamInputStream::GetLengthImpl ( ) const
overrideprotectedvirtualnoexcept
Returns
the total length of the available data for the stream.
-1 if not available.

Implements Aws::Crt::Io::InputStream.

◆ GetStatusImpl()

StreamStatus Aws::Crt::Io::StdIOStreamInputStream::GetStatusImpl ( ) const
overrideprotectedvirtualnoexcept
Returns
the current status of the stream.

Implements Aws::Crt::Io::InputStream.

◆ IsValid()

bool Aws::Crt::Io::StdIOStreamInputStream::IsValid ( ) const
overridevirtualnoexcept
Returns
true/false if this object is in a valid state

Implements Aws::Crt::Io::InputStream.

◆ PeekImpl()

int64_t Aws::Crt::Io::StdIOStreamInputStream::PeekImpl ( ) const
overrideprotectedvirtualnoexcept

Peeks the stream

Essentially calls peek on the underlying istream

Returns
return value of the underlying istream::peek

Implements Aws::Crt::Io::InputStream.

◆ ReadImpl()

bool Aws::Crt::Io::StdIOStreamInputStream::ReadImpl ( ByteBuf & buffer)
overrideprotectedvirtualnoexcept

◆ ReadSomeImpl()

bool Aws::Crt::Io::StdIOStreamInputStream::ReadSomeImpl ( ByteBuf & buffer)
overrideprotectedvirtualnoexcept

◆ SeekImpl()

bool Aws::Crt::Io::StdIOStreamInputStream::SeekImpl ( OffsetType offsetType,
StreamSeekBasis seekBasis )
overrideprotectednoexcept

The documentation for this class was generated from the following files: