private void WriteUInt32(CommandOpcode opcode, uint value)
        {
            var buffer = new byte[5];

            buffer[0] = (byte)opcode;
            BitConverter.GetBytes(value).CopyTo(buffer, 1);
            _stream.Write(buffer, 0, buffer.Length);
        }
 private void SendCommand(CommandOpcode opcode)
 {
     _stream.Write(new byte[] { (byte)opcode }, 0, 1);
 }