Class ByteOutputStream
An buffer of bytes that can be written sequentially.
Inheritance
System.Object
ByteOutputStream
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class ByteOutputStream
Properties
Size
Gets the number of bytes written to the stream.
Declaration
public int Size { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
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.Byte[] |
Write(Byte)
Writes a value to the stream.
Declaration
public void Write(byte value)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | value | The value. |
WriteBuffer(Byte[])
Writes a buffer to the stream.
Declaration
public void WriteBuffer(byte[] buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | 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.Byte[] | buffer | The buffer. |
System.Int32 | offset | The offset. |
System.Int32 | length | The length. |
WriteTo(ByteOutputStream)
Writes the contents of this stream to another stream.
Declaration
public void WriteTo(ByteOutputStream stream)
Parameters
Type | Name | Description |
---|---|---|
ByteOutputStream | stream | The stream. |