| Namespace: | Sirenix.Utilities.Unsafe |
| Assembly: | Sirenix.Utilities |
public static class UnsafeUtilities
public static void MemoryCopy(object from, object to, int byteCount, int fromByteOffset, int toByteOffset)
| System.Object | from | |
| System.Object | to | |
| System.Int32 | byteCount | |
| System.Int32 | fromByteOffset | |
| System.Int32 | toByteOffset |
public static string StringFromBytes(byte[] buffer, int charLength, bool needs16BitSupport)
| System.Byte[] | buffer | |
| System.Int32 | charLength | |
| System.Boolean | needs16BitSupport |
| System.String |
public static int StringToBytes(byte[] buffer, string value, bool needs16BitSupport)
| System.Byte[] | buffer | |
| System.String | value | |
| System.Boolean | needs16BitSupport |
| System.Int32 |
public static T[] StructArrayFromBytes<T>(byte[] bytes, int byteLength)
where T : struct
| System.Byte[] | bytes | |
| System.Int32 | byteLength |
| T[] |
| T |
public static T[] StructArrayFromBytes<T>(byte[] bytes, int byteLength, int byteOffset)
where T : struct
| System.Byte[] | bytes | |
| System.Int32 | byteLength | |
| System.Int32 | byteOffset |
| T[] |
| T |
public static byte[] StructArrayToBytes<T>(T[] array)
where T : struct
| T[] | array |
| System.Byte[] |
| T |
public static byte[] StructArrayToBytes<T>(T[] array, ref byte[] bytes, int byteOffset)
where T : struct
| T[] | array | |
| System.Byte[] | bytes | |
| System.Int32 | byteOffset |
| System.Byte[] |
| T |