Aspose::Pdf::OptimizedMemoryStream class
Contents
[
Hide
]OptimizedMemoryStream class
Defines a MemoryStream that can contains more standard capacity.
class OptimizedMemoryStream : public System::IO::Stream
Methods
Method | Description |
---|---|
Flush() override | The function overrided. |
get_BufferSize() const | Gets the size of the underlying buffers. |
get_CanRead() const override | When overridden in a derived class, gets a value indicating whether the current stream supports reading. |
get_CanSeek() const override | When overridden in a derived class, gets a value indicating whether the current stream supports seeking. |
get_CanWrite() const override | When overridden in a derived class, gets a value indicating whether the current stream supports writing. |
get_FreeOnDispose() const | Gets a value indicating whether to free the underlying buffers on dispose. |
get_Length() const override | When overridden in a derived class, gets the length in bytes of the stream. |
get_Position() const override | When overridden in a derived class, gets or sets the position within the current stream. |
OptimizedMemoryStream() | Initializes a new instance of the OptimizedMemoryStream class. |
OptimizedMemoryStream(int32_t, System::ArrayPtr<uint8_t>) | Initializes a new instance of the OptimizedMemoryStream class based on the specified byte array. |
OptimizedMemoryStream(int32_t) | Initializes a new instance of the OptimizedMemoryStream class. |
OptimizedMemoryStream(System::ArrayPtr<uint8_t>) | Initializes a new instance of the OptimizedMemoryStream class based on the specified byte array. |
Read(const System::ArrayPtr<uint8_t>&, int32_t, int32_t) override | When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. |
ReadByte() override | 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. |
Seek(int64_t, System::IO::SeekOrigin) override | When overridden in a derived class, sets the position within the current stream. |
set_BufferSize(int32_t) | Sets the size of the underlying buffers. |
set_FreeOnDispose(bool) | Sets a value indicating whether to free the underlying buffers on dispose. |
set_Position(int64_t) override | When overridden in a derived class, gets or sets the position within the current stream. |
SetLength(int64_t) override | When overridden in a derived class, sets the length of the current stream. |
ToArray() | Converts the current stream to a byte array. |
Write(const System::ArrayPtr<uint8_t>&, int32_t, int32_t) override | When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. |
WriteByte(uint8_t) override | Writes a byte to the current position in the stream and advances the position within the stream by one byte. |
WriteTo(System::SharedPtr<System::IO::Stream>) | Writes to the specified stream. |
Fields
Field | Description |
---|---|
static DefaultBufferSize | Default buffer size value in bytes. |
static Null | A stream with no underlying storage. |
See Also
- Class Stream
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++