Mosa.Compiler.Framework.Platform.OpcodeEncoder.GetByte C# (CSharp) 메소드

GetByte() 공개 메소드

public GetByte ( int index ) : byte
index int
리턴 byte
        public byte GetByte(int index)
        {
            if (index < 8)
            {
                int shift = 56 - (8 * index);
                return (byte)((data1 >> shift) & 0xFF);
            }
            else
            {
                index = index - 8;
                int shift = 56 - (8 * index);
                return (byte)((data2 >> shift) & 0xFF);
            }
        }