Inserts a byte in the packet.
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 |
|---|---|
| ArgumentOutOfRangeException | index is out of range. |
| InvalidOperationException | The packet is not initialized. |