BufferedReadStream Třída
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Stream, který zabalí jiný datový proud a umožňuje čtení řádků. Data jsou uložena do vyrovnávací paměti.
public ref class BufferedReadStream : System::IO::Stream
public class BufferedReadStream : System.IO.Stream
type BufferedReadStream = class
inherit Stream
Public Class BufferedReadStream
Inherits Stream
- Dědičnost
-
BufferedReadStream
Konstruktory
| BufferedReadStream(Stream, Int32) |
Vytvoří nový datový proud. |
| BufferedReadStream(Stream, Int32, ArrayPool<Byte>) |
Vytvoří nový datový proud. |
Vlastnosti
| BufferedData |
Aktuálně uložená data do vyrovnávací paměti. |
| 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. |
Metody
| Dispose(Boolean) | Releases the unmanaged resources used by the Stream and optionally releases the managed resources. |
| EnsureBuffered() |
Zajišťuje, že vyrovnávací paměť není prázdná. |
| EnsureBuffered(Int32) |
Zajišťuje, že je k dispozici minimální množství dat v vyrovnávací paměti. |
| EnsureBufferedAsync(CancellationToken) |
Zajišťuje, že vyrovnávací paměť není prázdná. |
| EnsureBufferedAsync(Int32, CancellationToken) |
Zajišťuje, že je k dispozici minimální množství dat v vyrovnávací paměti. |
| 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) |
Přečte čáru. Řádek je definován jako posloupnost znaků následovaných návratem na začátek řádku, za nímž následuje spojnicový kanál. Výsledný řetězec neobsahuje ukončující návrat na začátek řádku a odřádkování. |
| ReadLineAsync(Int32, CancellationToken) |
Přečte čáru. Řádek je definován jako posloupnost znaků následovaných návratem na začátek řádku, za nímž následuje spojnicový kanál. Výsledný řetězec neobsahuje ukončující návrat na začátek řádku a odřádkování. |
| 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. |