System.IO.BufferedStream
E697498
System.IO.BufferedStream is a .NET stream wrapper that adds an in-memory buffer to another stream to improve read and write performance.
Statements (52)
| Predicate | Object |
|---|---|
| instanceOf |
.NET class
ⓘ
buffered stream ⓘ stream wrapper ⓘ |
| assembly |
System.Runtime.dll
NERFINISHED
ⓘ
mscorlib.dll NERFINISHED ⓘ |
| baseClass | System.IO.Stream NERFINISHED ⓘ |
| bufferLocation | managed memory ⓘ |
| canWrap | any readable or writable Stream ⓘ |
| designGoal | reduce number of I/O operations on underlying stream ⓘ |
| hasConstructor |
BufferedStream(Stream stream)
ⓘ
BufferedStream(Stream stream, int bufferSize) NERFINISHED ⓘ |
| introducedIn | .NET Framework 2.0 NERFINISHED ⓘ |
| isAbstract | false ⓘ |
| isPublic | true ⓘ |
| isSealed | false ⓘ |
| method |
Close()
ⓘ
Dispose() ⓘ Flush() ⓘ FlushAsync(CancellationToken cancellationToken) ⓘ Read(byte[] buffer, int offset, int count) ⓘ ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) ⓘ ReadByte() ⓘ Seek(long offset, SeekOrigin origin) ⓘ SetLength(long value) ⓘ Write(byte[] buffer, int offset, int count) ⓘ WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) ⓘ WriteByte(byte value) ⓘ |
| namespace | System.IO NERFINISHED ⓘ |
| overrides |
System.IO.Stream.Dispose
ⓘ
System.IO.Stream.Flush NERFINISHED ⓘ System.IO.Stream.Read NERFINISHED ⓘ System.IO.Stream.Seek NERFINISHED ⓘ System.IO.Stream.SetLength ⓘ System.IO.Stream.Write NERFINISHED ⓘ |
| property |
CanRead
ⓘ
CanSeek ⓘ CanWrite ⓘ Length ⓘ Position ⓘ ReadTimeout ⓘ WriteTimeout ⓘ |
| purpose |
improve read performance by buffering data in memory
ⓘ
improve write performance by buffering data in memory ⓘ |
| requires | seek support only if seeking is used ⓘ |
| supports |
asynchronous read operations
ⓘ
asynchronous write operations ⓘ synchronous read operations ⓘ synchronous write operations ⓘ |
| threadSafety | instance members are not guaranteed to be thread-safe ⓘ |
| typicalUsage |
wrap FileStream for improved performance
ⓘ
wrap NetworkStream for improved performance ⓘ |
| wraps | System.IO.Stream NERFINISHED ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.