BufferedReadStream Clase
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Un objeto Stream que encapsula otra secuencia y permite leer líneas. Los datos se almacena en búfer en la memoria.
public ref class BufferedReadStream : System::IO::Stream
public class BufferedReadStream : System.IO.Stream
type BufferedReadStream = class
inherit Stream
Public Class BufferedReadStream
Inherits Stream
- Herencia
-
BufferedReadStream
Constructores
| BufferedReadStream(Stream, Int32) |
Crea una nueva secuencia. |
| BufferedReadStream(Stream, Int32, ArrayPool<Byte>) |
Crea una nueva secuencia. |
Propiedades
| BufferedData |
Datos almacenados en búfer actualmente. |
| CanRead | When overridden in a derived class, gets a value indicating whether the current stream supports reading. |
| CanSeek | When overridden in a derived class, gets a value indicating whether the current stream supports seeking. |
| CanTimeout | Gets a value that determines whether the current stream can time out. |
| CanWrite | When overridden in a derived class, gets a value indicating whether the current stream supports writing. |
| Length | When overridden in a derived class, gets the length in bytes of the stream. |
| Position | When overridden in a derived class, gets or sets the position within the current stream. |
Métodos
| Dispose(Boolean) | Releases the unmanaged resources used by the Stream and optionally releases the managed resources. |
| EnsureBuffered() |
Garantiza que el búfer no está vacío. |
| EnsureBuffered(Int32) |
Garantiza que haya disponible una cantidad mínima de datos almacenados en búfer. |
| EnsureBufferedAsync(CancellationToken) |
Garantiza que el búfer no está vacío. |
| EnsureBufferedAsync(Int32, CancellationToken) |
Garantiza que haya disponible una cantidad mínima de datos almacenados en búfer. |
| Flush() | 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(CancellationToken) | Asynchronously clears all buffers for this stream, causes any buffered data to be written to the underlying device, and monitors cancellation requests. |
| Read(Byte[], Int32, Int32) | 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[], Int32, Int32, CancellationToken) | 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. |
| ReadAsync(Memory<Byte>, CancellationToken) | 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. |
| ReadLine(Int32) |
Lee una línea. Una línea se define como una secuencia de caracteres seguida de un retorno de carro inmediatamente seguido de una fuente de línea. La cadena resultante no contiene el retorno de carro de terminación y la alimentación de línea. |
| ReadLineAsync(Int32, CancellationToken) |
Lee una línea. Una línea se define como una secuencia de caracteres seguida de un retorno de carro inmediatamente seguido de una fuente de línea. La cadena resultante no contiene el retorno de carro de terminación y la alimentación de línea. |
| Seek(Int64, SeekOrigin) | When overridden in a derived class, sets the position within the current stream. |
| SetLength(Int64) | When overridden in a derived class, sets the length of the current stream. |
| Write(Byte[], Int32, Int32) | 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[], Int32, Int32, CancellationToken) | 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. |
| WriteAsync(ReadOnlyMemory<Byte>, CancellationToken) | 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. |