Exemplo n.º 1
0
        public byte[] RecieveBinaryData(uint length)
        {
            byte[] toReturn = new byte[length];
            uint   bytesReceived;

            console.ReceiveBinary(consoleConnection, toReturn, length, out bytesReceived);

            if (bytesReceived != length)
            {
                throw new Exception("XboxDevConsole: Couldn't recieve all binary data requested.\n");
            }

            return(toReturn);
        }