Fixed array generation expression, removed compat types as they are being remapped
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
namespace BlendFile.CompatTypes;
|
||||
|
||||
public readonly struct int64_t {
|
||||
public Int64 Value { get; }
|
||||
|
||||
public int64_t(long value) {
|
||||
Value = value;
|
||||
}
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
namespace BlendFile.CompatTypes;
|
||||
|
||||
public readonly struct int8_t {
|
||||
public int8_t Value => _value;
|
||||
private readonly sbyte _value;
|
||||
|
||||
public int8_t(sbyte value) => _value = value;
|
||||
public int8_t(int8_t value) => _value = value._value;
|
||||
|
||||
public static explicit operator sbyte(int8_t value) => value._value;
|
||||
public static implicit operator int8_t(sbyte value) => new(value);
|
||||
|
||||
public static explicit operator byte(int8_t value) => (byte)value._value;
|
||||
public static implicit operator int8_t(byte value) => new((sbyte)value);
|
||||
|
||||
public static explicit operator int(int8_t value) => value._value;
|
||||
public static implicit operator int8_t(int value) => new((sbyte)value);
|
||||
|
||||
public static int8_t operator +(int8_t left, int8_t right) => left._value + right._value;
|
||||
public static int8_t operator -(int8_t left, int8_t right) => left._value - right._value;
|
||||
public static int8_t operator *(int8_t left, int8_t right) => left._value * right._value;
|
||||
public static int8_t operator /(int8_t left, int8_t right) => left._value / right._value;
|
||||
public static int8_t operator %(int8_t left, int8_t right) => left._value % right._value;
|
||||
public static int8_t operator &(int8_t left, int8_t right) => left._value & right._value;
|
||||
public static int8_t operator |(int8_t left, int8_t right) => left._value | right._value;
|
||||
public static int8_t operator ^(int8_t left, int8_t right) => left._value ^ right._value;
|
||||
public static int8_t operator <<(int8_t left, int right) => left._value << right;
|
||||
public static int8_t operator >>(int8_t left, int right) => left._value >> right;
|
||||
public static int8_t operator ++(int8_t value) => new (value._value + 1);
|
||||
public static int8_t operator --(int8_t value) => new (value._value - 1);
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
namespace BlendFile.CompatTypes;
|
||||
|
||||
public readonly struct uchar {
|
||||
public uchar Value => _value;
|
||||
|
||||
private readonly byte _value;
|
||||
|
||||
public uchar(byte value) => _value = value;
|
||||
public uchar(uchar value) => _value = value._value;
|
||||
|
||||
public static explicit operator byte(uchar value) => value._value;
|
||||
public static implicit operator uchar(byte value) => new(value);
|
||||
|
||||
public static explicit operator sbyte(uchar value) => (sbyte)value._value;
|
||||
public static implicit operator uchar(sbyte value) => new((byte)value);
|
||||
|
||||
public static explicit operator int(uchar value) => value._value;
|
||||
public static implicit operator uchar(int value) => new((byte)value);
|
||||
|
||||
public static uchar operator +(uchar left, uchar right) => left._value + right._value;
|
||||
public static uchar operator -(uchar left, uchar right) => left._value - right._value;
|
||||
public static uchar operator *(uchar left, uchar right) => left._value * right._value;
|
||||
public static uchar operator /(uchar left, uchar right) => left._value / right._value;
|
||||
public static uchar operator %(uchar left, uchar right) => left._value % right._value;
|
||||
public static uchar operator &(uchar left, uchar right) => left._value & right._value;
|
||||
public static uchar operator |(uchar left, uchar right) => left._value | right._value;
|
||||
public static uchar operator ^(uchar left, uchar right) => left._value ^ right._value;
|
||||
public static uchar operator <<(uchar left, byte right) => left._value << right;
|
||||
public static uchar operator >>(uchar left, byte right) => left._value >> right;
|
||||
public static uchar operator ++(uchar value) => new (value._value + 1);
|
||||
public static uchar operator --(uchar value) => new (value._value - 1);
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
namespace BlendFile.CompatTypes;
|
||||
|
||||
public readonly struct uint64_t {
|
||||
public UInt64 Value { get; }
|
||||
|
||||
public uint64_t(ulong value) {
|
||||
Value = value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user