AsmResolver.X86.X86Instruction.GetSize C# (CSharp) Method

GetSize() private static method

private static GetSize ( X86OperandSize operandSize ) : int
operandSize X86OperandSize
return int
        private static int GetSize(X86OperandSize operandSize)
        {
            switch (operandSize)
            {
                case X86OperandSize.Byte:
                    return 1;
                case X86OperandSize.Word:
                    return 2;
                case X86OperandSize.WordOrDword:
                case X86OperandSize.Dword:
                    return 4;
                case X86OperandSize.Fword:
                    return 6;
            }
            throw new NotSupportedException();
        }