프로퍼티 | 타입 | 설명 | |
---|---|---|---|
blockSize | long | ||
blocks | List |
||
length | long |
메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
Dispose ( bool disposing ) : void | ||
EnsureCapacity ( long intended_length ) : void |
protected EnsureCapacity ( long intended_length ) : void | ||
intended_length | long | |
리턴 | void |
public MemoryStreamExtension ( byte source ) : System | ||
source | byte | |
리턴 | System |
public MemoryStreamExtension ( int length ) : System | ||
length | int | |
리턴 | System |
public Read ( byte buffer, int offset, int count ) : int | ||
buffer | byte | |
offset | int | |
count | int | |
리턴 | 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 |
리턴 | void |
public Seek ( long offset, SeekOrigin origin ) : long | ||
offset | long | |
origin | SeekOrigin | |
리턴 | long |
public Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte | |
offset | int | |
count | int | |
리턴 | void |
public WriteTo ( Stream destination ) : void | ||
destination | Stream | The stream to write the content of this stream to |
리턴 | void |