The comparison between inline buffering versus System.IO.BufferedStream versus unbuffered output, and System.IO.BufferedStream shows no improvement whatsoever over unbuffered output, whereas hand-implemented buffered output with the same buffer size settings show drastic improvement. Hence this class.
The following tables list the members exposed by ActualBufferedStream.
Public Constructors
| Name | Description | |
|---|---|---|
|
ActualBufferedStream | Overloaded. |
Public Fields
| Name | Description | |
|---|---|---|
|
DEFAULT_BUFFER_SIZE |
Protected Fields
| Name | Description | |
|---|---|---|
|
_bufferSize | |
|
_readBuf | |
|
_readBufEnd | |
|
_readBufStart | |
|
_readEOS | |
|
_readTemp | |
|
_s | (inherited from AdapterStream) |
|
_writeBuf | |
|
_writeBufPos | |
|
_writeTemp |
Public Properties
| Name | Description | |
|---|---|---|
|
BufferSize | |
|
CanRead | (inherited from AdapterStream) |
|
CanSeek | (inherited from AdapterStream) |
|
CanTimeout | Gets a value that determines whether the current stream can time out. (inherited from Stream) |
|
CanWrite | (inherited from AdapterStream) |
|
Length | (inherited from AdapterStream) |
|
Position | (inherited from AdapterStream) |
|
ReadTimeout | Gets or sets a value that determines how long the stream will attempt to read before timing out. (inherited from Stream) |
|
TargetStream | (inherited from AdapterStream) |
|
WriteTimeout | Gets or sets a value that determines how long the stream will attempt to write before timing out. (inherited from Stream) |
Public Methods
| Name | Description | |
|---|---|---|
|
BeginRead | (inherited from AdapterStream) |
|
BeginWrite | (inherited from AdapterStream) |
|
Close | (inherited from AdapterStream) |
|
CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (inherited from MarshalByRefObject) |
|
Dispose | Overloaded. Releases all resources used by the |
|
EndRead | (inherited from AdapterStream) |
|
EndWrite | (inherited from AdapterStream) |
|
Equals | Determines whether the specified |
|
Flush | Overridden. |
|
GetHashCode | Serves as a hash function for a particular type. |
|
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (inherited from MarshalByRefObject) |
|
GetType | Gets the |
|
InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (inherited from MarshalByRefObject) |
|
Read | Overridden. |
|
ReadByte | Overridden. |
|
Seek | Overridden. |
|
SetLength | (inherited from AdapterStream) |
|
ToString | Returns a |
|
Write | Overridden. |
|
WriteByte | Overridden. |
Protected Methods
| Name | Description | |
|---|---|---|
|
CreateWaitHandle | Allocates a |
|
Dispose | Overloaded. Releases all resources used by the |
|
Finalize | Allows an |
|
MemberwiseClone | Overloaded. Creates a shallow copy of the current |
|
ResetReadBuffer |
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
|
ActualBufferedStream | Overloaded. |