Version 3.3.1.2

UnsafeUtilities class

Namespace: Sirenix.Utilities.Unsafe
Assembly: Sirenix.Utilities
public static class UnsafeUtilities
Not yet documented.
Inheritance
  • System.Object
  • UnsafeUtilities

Methods

MemoryCopy(Object, Object, Int32, Int32, Int32)
Not yet documented.
public static void MemoryCopy(object from, object to, int byteCount, int fromByteOffset, int toByteOffset)
Parameters
System.Object from

System.Object to

System.Int32 byteCount

System.Int32 fromByteOffset

System.Int32 toByteOffset

StringFromBytes(Byte[], Int32, Boolean)
Not yet documented.
public static string StringFromBytes(byte[] buffer, int charLength, bool needs16BitSupport)
Parameters
System.Byte[] buffer

System.Int32 charLength

System.Boolean needs16BitSupport

Returns
System.String

StringToBytes(Byte[], String, Boolean)
Not yet documented.
public static int StringToBytes(byte[] buffer, string value, bool needs16BitSupport)
Parameters
System.Byte[] buffer

System.String value

System.Boolean needs16BitSupport

Returns
System.Int32

StructArrayFromBytes<T>(Byte[], Int32)
Not yet documented.
public static T[] StructArrayFromBytes<T>(byte[] bytes, int byteLength)
    where T : struct
Parameters
System.Byte[] bytes

System.Int32 byteLength

Returns
T[]

Type Parameters
T

StructArrayFromBytes<T>(Byte[], Int32, Int32)
Not yet documented.
public static T[] StructArrayFromBytes<T>(byte[] bytes, int byteLength, int byteOffset)
    where T : struct
Parameters
System.Byte[] bytes

System.Int32 byteLength

System.Int32 byteOffset

Returns
T[]

Type Parameters
T

StructArrayToBytes<T>(T[])
Not yet documented.
public static byte[] StructArrayToBytes<T>(T[] array)
    where T : struct
Parameters
T[] array

Returns
System.Byte[]

Type Parameters
T

StructArrayToBytes<T>(T[], ref Byte[], Int32)
Not yet documented.
public static byte[] StructArrayToBytes<T>(T[] array, ref byte[] bytes, int byteOffset)
    where T : struct
Parameters
T[] array

System.Byte[] bytes

System.Int32 byteOffset

Returns
System.Byte[]

Type Parameters
T