示例#1
0
 public static bool EnumEquals <T>(T a, T b) where T : struct
 {
     return(PatchedUnsafeUtility.EnumEquals <T>(a, b));
 }
示例#2
0
 public static int EnumToInt <T>(T value) where T : struct
 {
     return(PatchedUnsafeUtility.EnumToInt <T>(value));
 }
示例#3
0
 public static int SizeOf <T>() where T : struct
 {
     return(PatchedUnsafeUtility.SizeOf <T>());
 }
示例#4
0
 public static int AlignOf <T>() where T : struct
 {
     return(PatchedUnsafeUtility.AlignOf <T>());
 }
示例#5
0
 unsafe public static void WriteArrayElementWithStride <T>(void *destination, int index, int stride, T value)
 {
     PatchedUnsafeUtility.WriteArrayElementWithStride <T>(destination, index, stride, value);
 }
示例#6
0
 unsafe public static void *AddressOf <T>(ref T output) where T : struct
 {
     return(PatchedUnsafeUtility.AddressOf <T>(ref output));
 }
示例#7
0
 unsafe public static void WriteArrayElement <T>(void *destination, int index, T value)
 {
     PatchedUnsafeUtility.WriteArrayElement <T>(destination, index, value);
 }
示例#8
0
 unsafe public static T ReadArrayElementWithStride <T>(void *source, int index, int stride)
 {
     return(PatchedUnsafeUtility.ReadArrayElementWithStride <T>(source, index, stride));
 }
示例#9
0
 unsafe public static T ReadArrayElement <T>(void *source, int index)
 {
     return(PatchedUnsafeUtility.ReadArrayElement <T>(source, index));
 }
示例#10
0
 public static unsafe void CopyStructureToPtr <T>(ref T input, void *ptr) where T : struct
 {
     PatchedUnsafeUtility.CopyStructureToPtr <T>(ref input, ptr);
 }
示例#11
0
 public static unsafe void CopyPtrToStructure <T>(void *ptr, out T output) where T : struct
 {
     PatchedUnsafeUtility.CopyPtrToStructure <T>(ptr, out output);
 }