Méthode | Description | |
---|---|---|
CopyTo ( Stream destination ) : void |
Reads the bytes from the current stream and writes them to another stream.
|
|
CopyTo ( Stream destination, int bufferSize ) : void |
Reads the bytes from the current stream and writes them to another stream, using a specified buffer size.
|
|
CopyToAsync ( Stream destination, int bufferSize, |
Asynchronously reads the bytes from the current stream and writes them to another stream, using a specified buffer size and cancellation token.
|
|
Flush ( ) : void |
When overridden in a derived class, clears all buffers for this stream and causes any buffered data to be written to the underlying device.
|
|
FlushAsync ( |
Asynchronously clears all buffers for this stream, causes any buffered data to be written to the underlying device, and monitors cancellation requests.
|
|
PoolMemoryStream ( ) : System |
Initializes a new instance of the PoolMemoryStream class.
|
|
PoolMemoryStream ( byte data ) : System |
Initializes a new instance of the PoolMemoryStream class.
|
|
PoolMemoryStream ( long size ) : System |
Initializes a new instance of the PoolMemoryStream class.
|
|
Read ( byte buffer, int offset, int count ) : int |
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.
|
|
ReadAsync ( byte buffer, int offset, int count, |
Asynchronously reads a sequence of bytes from the current stream, advances the position within the stream by the number of bytes read, and monitors cancellation requests.
|
|
ReadByte ( ) : int |
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 ( long offset, SeekOrigin origin ) : long |
When overridden in a derived class, sets the position within the current stream.
|
|
SetLength ( long value ) : void |
When overridden in a derived class, sets the length of the current stream.
|
|
Write ( byte buffer, int offset, int count ) : void |
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.
|
|
WriteAsync ( byte buffer, int offset, int count, |
Asynchronously writes a sequence of bytes to the current stream, advances the current position within this stream by the number of bytes written, and monitors cancellation requests.
|
|
WriteByte ( byte value ) : void |
Writes a byte to the current position in the stream and advances the position within the stream by one byte.
|
|
this ( long index ) : byte |
Gets or sets the System.Byte at the specified index.
|
Méthode | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Méthode | Description | |
---|---|---|
AddBuffer ( ) : void |
Adds a buffer.
|
|
SetLengthInternal ( long value ) : void |
sets the length of the current stream.
|
|
WriteInternal ( byte buffer, int offset, int count ) : void |
Writes the internal.
|
public CopyTo ( Stream destination ) : void | ||
destination | Stream | The stream to which the contents of the current stream will be copied. |
Résultat | void |
public CopyTo ( Stream destination, int bufferSize ) : void | ||
destination | Stream | The stream to which the contents of the current stream will be copied. |
bufferSize | int | Ignored. The internal buffersize is always used. |
Résultat | void |
public CopyToAsync ( Stream destination, int bufferSize, |
||
destination | Stream | The stream to which the contents of the current stream will be copied. |
bufferSize | int | /// The size, in bytes, of the buffer. This value must be greater than zero. The default size is /// 4096. /// |
cancellationToken |
/// The token to monitor for cancellation requests. The default value is
/// |
|
Résultat | Task |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
Résultat | void |
public FlushAsync ( |
||
cancellationToken |
/// The token to monitor for cancellation requests. The default value is
/// |
|
Résultat | Task |
public PoolMemoryStream ( byte data ) : System | ||
data | byte | The data. |
Résultat | System |
public PoolMemoryStream ( long size ) : System | ||
size | long | The size. |
Résultat | System |
public Read ( byte buffer, int offset, int count ) : int | ||
buffer | byte |
/// An array of bytes. When this method returns, the buffer contains the specified byte array with the values between
/// |
offset | int |
/// The zero-based byte offset in |
count | int | The maximum number of bytes to be read from the current stream. |
Résultat | int |
public ReadAsync ( byte buffer, int offset, int count, |
||
buffer | byte | The buffer to write the data into. |
offset | int | The byte offset in |
count | int | The maximum number of bytes to read. |
cancellationToken |
/// The token to monitor for cancellation requests. The default value is
/// |
|
Résultat | Task |
public Seek ( long offset, SeekOrigin origin ) : long | ||
offset | long | A byte offset relative to the |
origin | SeekOrigin |
/// A value of type |
Résultat | long |
public SetLength ( long value ) : void | ||
value | long | The desired length of the current stream in bytes. |
Résultat | void |
public Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte |
/// An array of bytes. This method copies |
offset | int |
/// The zero-based byte offset in |
count | int | The number of bytes to be written to the current stream. |
Résultat | void |
public WriteAsync ( byte buffer, int offset, int count, |
||
buffer | byte | The buffer to write data from. |
offset | int |
/// The zero-based byte offset in |
count | int | The maximum number of bytes to write. |
cancellationToken |
/// The token to monitor for cancellation requests. The default value is
/// |
|
Résultat | Task |
public WriteByte ( byte value ) : void | ||
value | byte | The byte to write to the stream. |
Résultat | void |