Property | Type | Description | |
---|---|---|---|
blockSize | long | ||
blocks | List |
||
length | long |
Method | Description | |
---|---|---|
Flush ( ) : void | ||
MemoryStreamExtension ( ) : System | ||
MemoryStreamExtension ( byte source ) : System | ||
MemoryStreamExtension ( int length ) : System | ||
Read ( byte buffer, int offset, int count ) : int | ||
ReadByte ( ) : int | ||
ReadFrom ( Stream source, long length ) : void |
Reads length bytes from source into the this instance at the current position.
|
|
Seek ( long offset, SeekOrigin origin ) : long | ||
SetLength ( long value ) : void | ||
ToArray ( ) : byte[] |
Returns the entire content of the stream as a byte array. This is not safe because the call to new byte[] may fail if the stream is large enough. Where possible use methods which operate on streams directly instead.
|
|
Write ( byte buffer, int offset, int count ) : void | ||
WriteByte ( byte value ) : void | ||
WriteTo ( Stream destination ) : void |
Writes the entire stream into destination, regardless of Position, which remains unchanged.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void | ||
EnsureCapacity ( long intended_length ) : void |
protected EnsureCapacity ( long intended_length ) : void | ||
intended_length | long | |
return | void |
public MemoryStreamExtension ( byte source ) : System | ||
source | byte | |
return | System |
public MemoryStreamExtension ( int length ) : System | ||
length | int | |
return | System |
public Read ( byte buffer, int offset, int count ) : int | ||
buffer | byte | |
offset | int | |
count | int | |
return | int |
public ReadFrom ( Stream source, long length ) : void | ||
source | Stream | The stream containing the data to copy |
length | long | The number of bytes to copy |
return | void |
public Seek ( long offset, SeekOrigin origin ) : long | ||
offset | long | |
origin | SeekOrigin | |
return | long |
public Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte | |
offset | int | |
count | int | |
return | void |
public WriteTo ( Stream destination ) : void | ||
destination | Stream | The stream to write the content of this stream to |
return | void |