OptimizedMemoryStream

OptimizedMemoryStream class

Defines a MemoryStream that can contains more standard capacity

The OptimizedMemoryStream type exposes the following members:

Constructors

NameDescription
OptimizedMemoryStream()Initializes a new instance of the OptimizedMemoryStream class.
OptimizedMemoryStream(buffer_size, buffer)Initializes a new instance of the OptimizedMemoryStream class
OptimizedMemoryStream(buffer_size)Initializes a new instance of the OptimizedMemoryStream class
OptimizedMemoryStream(buffer)Initializes a new instance of the OptimizedMemoryStream class

Properties

NameDescription
buffer_sizeGets or sets the size of the underlying buffers.
free_on_disposeGets or sets a value indicating whether to free the underlying buffers on dispose.
DEFAULT_BUFFER_SIZEDefault buffer size value in bytes.

Methods

NameDescription
to_array()Converts the current stream to a byte array.
write_to(stream)Writes to the specified stream.

See Also