Aspose::Slides::IStreamWrapper Class Referenceabstract

Aspose.IO.Stream wrapper for COM interface. More...

Inherits System::IDisposable.

Inherited by Aspose::Slides::StreamWrapper.

Public Member Functions

virtual System::SharedPtr< System::IO::Streamget_Stream ()=0
 Gets a stream. Read-only System::IO::Stream. More...
 
virtual bool get_CanRead ()=0
 Gets a value indicating whether the current stream supports reading. Read-only bool. More...
 
virtual bool get_CanSeek ()=0
 Gets a value indicating whether the current stream supports seeking. Read-only bool. More...
 
virtual bool get_CanWrite ()=0
 Gets a value indicating whether the current stream supports writing. Read-only bool. More...
 
virtual int64_t get_Length ()=0
 Gets the length in bytes of the stream. Read-only int64_t. More...
 
virtual int64_t get_Position ()=0
 Gets the position within the current stream. Read-only int64_t. More...
 
virtual void Close ()=0
 Closes the current stream and releases any resources. More...
 
virtual void Flush ()=0
 Clears all buffers for this stream and causes any buffered data to be written to the underlying device. More...
 
virtual void Read (System::ArrayPtr< uint8_t > buffer, int32_t offset, int32_t count)=0
 Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. More...
 
virtual int32_t ReadByte ()=0
 Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream. More...
 
virtual int64_t Seek (int64_t offset, System::IO::SeekOrigin origin)=0
 Sets the position within the current stream More...
 
virtual void Write (System::ArrayPtr< uint8_t > buffer, int32_t offset, int32_t count)=0
 writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. More...
 
virtual void WriteByte (uint8_t value)=0
 Writes a byte to the current position in the stream and advances the position within the stream by one byte. More...
 
- Public Member Functions inherited from System::IDisposable
virtual void Dispose ()
 Does nothing. More...
 
- Public Member Functions inherited from System::Object
 Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ~Object ()
 Destroys object. Frees all internal data structures. More...
 
 Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared reference counter. More...
 
void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual String ToString () const
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual void SetTemplateWeakPtr (uint32_t argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
virtual bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 Specialization of Object::ReferenceEquals for case of string and nullptr. More...
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 Specialization of Object::ReferenceEquals for case of strings. More...
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Implements C# typeof(System.Object) construct. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool Equals (double const &objA, double const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 

Detailed Description

Aspose.IO.Stream wrapper for COM interface.

Member Function Documentation

◆ Close()

virtual void Aspose::Slides::IStreamWrapper::Close ( )
pure virtual

Closes the current stream and releases any resources.

Implemented in Aspose::Slides::StreamWrapper.

◆ Flush()

virtual void Aspose::Slides::IStreamWrapper::Flush ( )
pure virtual

Clears all buffers for this stream and causes any buffered data to be written to the underlying device.

Implemented in Aspose::Slides::StreamWrapper.

◆ get_CanRead()

virtual bool Aspose::Slides::IStreamWrapper::get_CanRead ( )
pure virtual

Gets a value indicating whether the current stream supports reading. Read-only bool.

Implemented in Aspose::Slides::StreamWrapper.

◆ get_CanSeek()

virtual bool Aspose::Slides::IStreamWrapper::get_CanSeek ( )
pure virtual

Gets a value indicating whether the current stream supports seeking. Read-only bool.

Implemented in Aspose::Slides::StreamWrapper.

◆ get_CanWrite()

virtual bool Aspose::Slides::IStreamWrapper::get_CanWrite ( )
pure virtual

Gets a value indicating whether the current stream supports writing. Read-only bool.

Implemented in Aspose::Slides::StreamWrapper.

◆ get_Length()

virtual int64_t Aspose::Slides::IStreamWrapper::get_Length ( )
pure virtual

Gets the length in bytes of the stream. Read-only int64_t.

Implemented in Aspose::Slides::StreamWrapper.

◆ get_Position()

virtual int64_t Aspose::Slides::IStreamWrapper::get_Position ( )
pure virtual

Gets the position within the current stream. Read-only int64_t.

Implemented in Aspose::Slides::StreamWrapper.

◆ get_Stream()

virtual System::SharedPtr<System::IO::Stream> Aspose::Slides::IStreamWrapper::get_Stream ( )
pure virtual

Gets a stream. Read-only System::IO::Stream.

Implemented in Aspose::Slides::StreamWrapper.

◆ Read()

virtual void Aspose::Slides::IStreamWrapper::Read ( System::ArrayPtr< uint8_t buffer,
int32_t  offset,
int32_t  count 
)
pure virtual

Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.

Parameters
bufferSequence of bytes uint8_t[]
offsetStart reading position int32_t
countCount bytes for reading int32_t

Implemented in Aspose::Slides::StreamWrapper.

◆ ReadByte()

virtual int32_t Aspose::Slides::IStreamWrapper::ReadByte ( )
pure virtual

Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.

Returns
Read byte int32_t

Implemented in Aspose::Slides::StreamWrapper.

◆ Seek()

virtual int64_t Aspose::Slides::IStreamWrapper::Seek ( int64_t  offset,
System::IO::SeekOrigin  origin 
)
pure virtual

Sets the position within the current stream

Parameters
offsetA byte offset relative to the origin parameter int64_t
originA value of type System::IO::SeekOrigin indicating the reference point used to obtain the new position
Returns
The new position within the current stream int64_t

Implemented in Aspose::Slides::StreamWrapper.

◆ Write()

virtual void Aspose::Slides::IStreamWrapper::Write ( System::ArrayPtr< uint8_t buffer,
int32_t  offset,
int32_t  count 
)
pure virtual

writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.

Parameters
bufferAn array of bytes uint8_t[]
offsetThe zero-based byte offset in buffer at which to begin copying bytes to the current stream int32_t
countThe number of bytes to be written to the current stream int32_t

Implemented in Aspose::Slides::StreamWrapper.

◆ WriteByte()

virtual void Aspose::Slides::IStreamWrapper::WriteByte ( uint8_t  value)
pure virtual

Writes a byte to the current position in the stream and advances the position within the stream by one byte.

Parameters
valueByte for writion uint8_t

Implemented in Aspose::Slides::StreamWrapper.