AsmResolver.DataSegment.CreateNativeInteger C# (CSharp) Method

CreateNativeInteger() public static method

public static CreateNativeInteger ( ulong value, bool is32Bit ) : DataSegment
value ulong
is32Bit bool
return DataSegment
        public static DataSegment CreateNativeInteger(ulong value, bool is32Bit)
        {
            return is32Bit
                ? new DataSegment(BitConverter.GetBytes((uint)value))
                : new DataSegment(BitConverter.GetBytes(value));
        }