Volume Control
Application-specific hotkeys for Windows
|
A log endpoint that implements IEndpointWriter and uses a MemoryStream as an endpoint. More...
Public Member Functions | |
MemoryEndpoint (bool enabled=true, int kilobytes=10) | |
TextReader | GetTextReader () |
Gets a new TextReader instance for this memory endpoint. More... | |
TextWriter | GetTextWriter () |
Gets a TextWriter object for writing to this endpoint. | |
int? | ReadRaw () |
string? | ReadRawLine () |
void | Reset () |
Clears the endpoint's contents, leaving it blank. | |
void | Write (string? str) |
void | WriteLine (string? str=null) |
void | Dispose () |
override string | ToString () |
Returns the contents of the stream as a UTF8 string. More... | |
Public Member Functions inherited from VolumeControl.Log.Interfaces.IEndpointWriter | |
void | Write (string @string) |
Writes the specified string to the endpoint. More... | |
void | WriteLine (string @string) |
Writes the specified string to the endpoint, followed by a line break. More... | |
Properties | |
bool | IsWritingEnabled [get, set] |
Properties inherited from VolumeControl.Log.Interfaces.IEndpointWriter | |
bool | IsWritingEnabled [get, set] |
Gets or sets whether this endpoint can be written to. More... | |
Events | |
EventHandler< bool >? | EnabledChanging |
EventHandler< bool >? | EnabledChanged |
Events inherited from VolumeControl.Log.Interfaces.IEndpointWriter | |
EventHandler< bool >? | EnabledChanging |
Occurs when the endpoint is about to be enabled or disabled for any reason. More... | |
EventHandler< bool >? | EnabledChanged |
Occurs when the endpoint is enabled or disabled for any reason. More... | |
A log endpoint that implements IEndpointWriter and uses a MemoryStream as an endpoint.
VolumeControl.Log.Endpoints.MemoryEndpoint.MemoryEndpoint | ( | bool | enabled = true , |
int | kilobytes = 10 |
||
) |
enabled | When true, the endpoint starts enabled. |
kilobytes | The size of the endpoint's buffer in kilobytes. |
References VolumeControl.Log.Endpoints.MemoryEndpoint.IsWritingEnabled.
TextReader VolumeControl.Log.Endpoints.MemoryEndpoint.GetTextReader | ( | ) |
Gets a new TextReader instance for this memory endpoint.
The caller is responsible for disposing of the returned reader object.
Referenced by VolumeControl.Log.Endpoints.MemoryEndpoint.ReadRaw(), and VolumeControl.Log.Endpoints.MemoryEndpoint.ReadRawLine().
override string VolumeControl.Log.Endpoints.MemoryEndpoint.ToString | ( | ) |
Returns the contents of the stream as a UTF8 string.