Example #1
0
        private static unsafe void Parse2Protocol(byte[] buffer, out DanmakuProtocol protocol)
        {
            fixed(byte *ptr = buffer)
            {
                protocol = *(DanmakuProtocol *)ptr;
            }

            protocol.ChangeEndian();
        }