Adds a byte to the end of the packet.
ICollection<byte>.Add
Packet resizing behavior is less than optimal. So, in performance-critical applications, it's presently a good idea to initialize the packet with a final byte array instead of using this method.
Exception Type | Condition |
---|---|
InvalidOperationException | The packet is not initialized. |