Aspose::Pdf::OptimizedMemoryStream class

OptimizedMemoryStream class

Defines a MemoryStream that can contains more standard capacity.

class OptimizedMemoryStream : public System::IO::Stream

Methods

MethodDescription
Flush() overrideThe function overrided.
get_BufferSize() constGets the size of the underlying buffers.
get_CanRead() const overrideWhen overridden in a derived class, gets a value indicating whether the current stream supports reading.
get_CanSeek() const overrideWhen overridden in a derived class, gets a value indicating whether the current stream supports seeking.
get_CanWrite() const overrideWhen overridden in a derived class, gets a value indicating whether the current stream supports writing.
get_FreeOnDispose() constGets a value indicating whether to free the underlying buffers on dispose.
get_Length() const overrideWhen overridden in a derived class, gets the length in bytes of the stream.
get_Position() const overrideWhen 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) overrideWhen 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() overrideReads 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) overrideWhen 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) overrideWhen overridden in a derived class, gets or sets the position within the current stream.
SetLength(int64_t) overrideWhen 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) overrideWhen 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) overrideWrites 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

FieldDescription
static DefaultBufferSizeDefault buffer size value in bytes.

See Also