Class ByteOutputStream
An buffer of bytes that can be written sequentially.
Inheritance
System.Object
ByteOutputStream
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class ByteOutputStream : object
Properties
Size
Gets the number of bytes written to the stream.
Declaration
public int Size { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
Reset()
Empties this stream and resets it.
Declaration
public void Reset()
ToArray()
Converts the stream to a byte array.
Declaration
public byte[] ToArray()
Returns
Type | Description |
---|---|
System. |
Write(Byte)
Writes a value to the stream.
Declaration
public void Write(byte value)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The value. |
WriteBuffer(Byte[])
Writes a buffer to the stream.
Declaration
public void WriteBuffer(byte[] buffer)
Parameters
Type | Name | Description |
---|---|---|
System. |
buffer | The buffer. |
WriteBuffer(Byte[], Int32, Int32)
Writes a buffer to the stream.
Declaration
public void WriteBuffer(byte[] buffer, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
System. |
buffer | The buffer. |
System. |
offset | The offset. |
System. |
length | The length. |
WriteTo(ByteOutputStream)
Writes the contents of this stream to another stream.
Declaration
public void WriteTo(ByteOutputStream stream)
Parameters
Type | Name | Description |
---|---|---|
Byte |
stream | The stream. |