StreamTools ThreadSafeStream GetBuffer Method NetworkComms.Net Help
Attempts to return the buffer associated with the internal stream. In certain circumstances this is more efficient than copying the stream contents into a new buffer using ToArray. If the internal stream is not a memory stream will throw InvalidCastException. If access to the buffer is not allowed will throw an UnauthorizedAccessException.

Namespace: NetworkCommsDotNet.Tools
Assembly: NetworkCommsDotNet (in NetworkCommsDotNet.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax

public byte[] GetBuffer()

Return Value

Type:  OnlineByte 

[Missing <returns> documentation for "M:NetworkCommsDotNet.Tools.StreamTools.ThreadSafeStream.GetBuffer"]

See Also