FSO.HIT.HITThread.ReadUInt32 C# (CSharp) Method

ReadUInt32() public method

public ReadUInt32 ( ) : uint
return uint
        public uint ReadUInt32()
        {
            uint result = 0;
            result |= ReadByte();
            result |= ((uint)ReadByte() << 8);
            result |= ((uint)ReadByte() << 16);
            result |= ((uint)ReadByte() << 24);
            return result;
        }

Usage Example

Ejemplo n.º 1
0
        /// <summary>
        /// Call a function; push the instruction pointer and jump to the given address.
        /// </summary>
        public static HITResult Call(HITThread thread)
        {
            uint targ = thread.ReadUInt32();

            thread.Stack.Push((int)thread.PC);
            thread.PC = PCTrans(targ, thread);

            return(HITResult.CONTINUE);
        }
All Usage Examples Of FSO.HIT.HITThread::ReadUInt32