Class Endianness
Assembly: cs.temp.dll.dll
Syntax
public static class Endianness
Methods
CopyToBytesBigEndian<TByteArray>(Int16, ref TByteArray, Int32)
Declaration
public static void CopyToBytesBigEndian<TByteArray>(this short value, ref TByteArray bytes, int offset = 0)
where TByteArray : IList<byte>
Parameters
Type |
Name |
Description |
Int16 |
value |
|
TByteArray |
bytes |
|
Int32 |
offset |
|
Type Parameters
Name |
Description |
TByteArray |
|
CopyToBytesBigEndian<TByteArray>(Int32, ref TByteArray, Int32)
Declaration
public static void CopyToBytesBigEndian<TByteArray>(this int value, ref TByteArray bytes, int offset = 0)
where TByteArray : IList<byte>
Parameters
Type |
Name |
Description |
Int32 |
value |
|
TByteArray |
bytes |
|
Int32 |
offset |
|
Type Parameters
Name |
Description |
TByteArray |
|
CopyToBytesBigEndian<TByteArray>(Int64, ref TByteArray, Int32)
Declaration
public static void CopyToBytesBigEndian<TByteArray>(this long value, ref TByteArray bytes, int offset = 0)
where TByteArray : IList<byte>
Parameters
Type |
Name |
Description |
Int64 |
value |
|
TByteArray |
bytes |
|
Int32 |
offset |
|
Type Parameters
Name |
Description |
TByteArray |
|
CopyToBytesBigEndian<TByteArray>(UInt16, ref TByteArray, Int32)
Declaration
public static void CopyToBytesBigEndian<TByteArray>(this ushort value, ref TByteArray bytes, int offset = 0)
where TByteArray : IList<byte>
Parameters
Type |
Name |
Description |
UInt16 |
value |
|
TByteArray |
bytes |
|
Int32 |
offset |
|
Type Parameters
Name |
Description |
TByteArray |
|
CopyToBytesBigEndian<TByteArray>(UInt32, ref TByteArray, Int32)
Declaration
public static void CopyToBytesBigEndian<TByteArray>(this uint value, ref TByteArray bytes, int offset = 0)
where TByteArray : IList<byte>
Parameters
Type |
Name |
Description |
UInt32 |
value |
|
TByteArray |
bytes |
|
Int32 |
offset |
|
Type Parameters
Name |
Description |
TByteArray |
|
CopyToBytesBigEndian<TByteArray>(UInt64, ref TByteArray, Int32)
Declaration
public static void CopyToBytesBigEndian<TByteArray>(this ulong value, ref TByteArray bytes, int offset = 0)
where TByteArray : IList<byte>
Parameters
Type |
Name |
Description |
UInt64 |
value |
|
TByteArray |
bytes |
|
Int32 |
offset |
|
Type Parameters
Name |
Description |
TByteArray |
|
CopyToNativeBytesBigEndian(Int16, ref NativeArray<Byte>, Int32)
Declaration
public static void CopyToNativeBytesBigEndian(this short value, ref NativeArray<byte> bytes, int offset = 0)
Parameters
Type |
Name |
Description |
Int16 |
value |
|
NativeArray<Byte> |
bytes |
|
Int32 |
offset |
|
CopyToNativeBytesBigEndian(Int32, ref NativeArray<Byte>, Int32)
Declaration
public static void CopyToNativeBytesBigEndian(this int value, ref NativeArray<byte> bytes, int offset = 0)
Parameters
Type |
Name |
Description |
Int32 |
value |
|
NativeArray<Byte> |
bytes |
|
Int32 |
offset |
|
CopyToNativeBytesBigEndian(Int64, ref NativeArray<Byte>, Int32)
Declaration
public static void CopyToNativeBytesBigEndian(this long value, ref NativeArray<byte> bytes, int offset = 0)
Parameters
Type |
Name |
Description |
Int64 |
value |
|
NativeArray<Byte> |
bytes |
|
Int32 |
offset |
|
CopyToNativeBytesBigEndian(UInt16, ref NativeArray<Byte>, Int32)
Declaration
public static void CopyToNativeBytesBigEndian(this ushort value, ref NativeArray<byte> bytes, int offset = 0)
Parameters
CopyToNativeBytesBigEndian(UInt32, ref NativeArray<Byte>, Int32)
Declaration
public static void CopyToNativeBytesBigEndian(this uint value, ref NativeArray<byte> bytes, int offset = 0)
Parameters
CopyToNativeBytesBigEndian(UInt64, ref NativeArray<Byte>, Int32)
Declaration
public static void CopyToNativeBytesBigEndian(this ulong value, ref NativeArray<byte> bytes, int offset = 0)
Parameters
CopyToNativeBytesBigEndian<TByteArray>(Int16, ref TByteArray, Int32)
Declaration
public static void CopyToNativeBytesBigEndian<TByteArray>(this short value, ref TByteArray bytes, int offset = 0)
where TByteArray : IIndexable<byte>
Parameters
Type |
Name |
Description |
Int16 |
value |
|
TByteArray |
bytes |
|
Int32 |
offset |
|
Type Parameters
Name |
Description |
TByteArray |
|
CopyToNativeBytesBigEndian<TByteArray>(Int32, ref TByteArray, Int32)
Declaration
public static void CopyToNativeBytesBigEndian<TByteArray>(this int value, ref TByteArray bytes, int offset = 0)
where TByteArray : IIndexable<byte>
Parameters
Type |
Name |
Description |
Int32 |
value |
|
TByteArray |
bytes |
|
Int32 |
offset |
|
Type Parameters
Name |
Description |
TByteArray |
|
CopyToNativeBytesBigEndian<TByteArray>(Int64, ref TByteArray, Int32)
Declaration
public static void CopyToNativeBytesBigEndian<TByteArray>(this long value, ref TByteArray bytes, int offset = 0)
where TByteArray : IIndexable<byte>
Parameters
Type |
Name |
Description |
Int64 |
value |
|
TByteArray |
bytes |
|
Int32 |
offset |
|
Type Parameters
Name |
Description |
TByteArray |
|
CopyToNativeBytesBigEndian<TByteArray>(UInt16, ref TByteArray, Int32)
Declaration
public static void CopyToNativeBytesBigEndian<TByteArray>(this ushort value, ref TByteArray bytes, int offset = 0)
where TByteArray : IIndexable<byte>
Parameters
Type |
Name |
Description |
UInt16 |
value |
|
TByteArray |
bytes |
|
Int32 |
offset |
|
Type Parameters
Name |
Description |
TByteArray |
|
CopyToNativeBytesBigEndian<TByteArray>(UInt32, ref TByteArray, Int32)
Declaration
public static void CopyToNativeBytesBigEndian<TByteArray>(this uint value, ref TByteArray bytes, int offset = 0)
where TByteArray : IIndexable<byte>
Parameters
Type |
Name |
Description |
UInt32 |
value |
|
TByteArray |
bytes |
|
Int32 |
offset |
|
Type Parameters
Name |
Description |
TByteArray |
|
CopyToNativeBytesBigEndian<TByteArray>(UInt64, ref TByteArray, Int32)
Declaration
public static void CopyToNativeBytesBigEndian<TByteArray>(this ulong value, ref TByteArray bytes, int offset = 0)
where TByteArray : IIndexable<byte>
Parameters
Type |
Name |
Description |
UInt64 |
value |
|
TByteArray |
bytes |
|
Int32 |
offset |
|
Type Parameters
Name |
Description |
TByteArray |
|
FromBytesBigEndian(Byte[], out BigInteger)
Declaration
public static void FromBytesBigEndian(byte[] bytes, out BigInteger value)
Parameters
Type |
Name |
Description |
Byte[] |
bytes |
|
BigInteger |
value |
|
FromBytesBigEndian(Byte[], out UInt16)
Declaration
public static void FromBytesBigEndian(byte[] bytes, out ushort value)
Parameters
FromBytesBigEndian(Byte[], out UInt32)
Declaration
public static void FromBytesBigEndian(byte[] bytes, out uint value)
Parameters
FromBytesBigEndian(Byte[], out UInt64)
Declaration
public static void FromBytesBigEndian(byte[] bytes, out ulong value)
Parameters
ToBytesBigEndian(Int16)
Declaration
public static byte[] ToBytesBigEndian(this short value)
Parameters
Type |
Name |
Description |
Int16 |
value |
|
Returns
ToBytesBigEndian(Int16, Allocator)
Declaration
public static NativeArray<byte> ToBytesBigEndian(this short value, Allocator allocator)
Parameters
Type |
Name |
Description |
Int16 |
value |
|
Allocator |
allocator |
|
Returns
Type |
Description |
NativeArray<Byte> |
|
ToBytesBigEndian(Int32)
Declaration
public static byte[] ToBytesBigEndian(this int value)
Parameters
Type |
Name |
Description |
Int32 |
value |
|
Returns
ToBytesBigEndian(Int32, Allocator)
Declaration
public static NativeArray<byte> ToBytesBigEndian(this int value, Allocator allocator)
Parameters
Type |
Name |
Description |
Int32 |
value |
|
Allocator |
allocator |
|
Returns
Type |
Description |
NativeArray<Byte> |
|
ToBytesBigEndian(Int64)
Declaration
public static byte[] ToBytesBigEndian(this long value)
Parameters
Type |
Name |
Description |
Int64 |
value |
|
Returns
ToBytesBigEndian(Int64, Allocator)
Declaration
public static NativeArray<byte> ToBytesBigEndian(this long value, Allocator allocator)
Parameters
Type |
Name |
Description |
Int64 |
value |
|
Allocator |
allocator |
|
Returns
Type |
Description |
NativeArray<Byte> |
|
ToBytesBigEndian(UInt16)
Declaration
public static byte[] ToBytesBigEndian(this ushort value)
Parameters
Type |
Name |
Description |
UInt16 |
value |
|
Returns
ToBytesBigEndian(UInt16, Allocator)
Declaration
public static NativeArray<byte> ToBytesBigEndian(this ushort value, Allocator allocator)
Parameters
Type |
Name |
Description |
UInt16 |
value |
|
Allocator |
allocator |
|
Returns
Type |
Description |
NativeArray<Byte> |
|
ToBytesBigEndian(UInt32)
Declaration
public static byte[] ToBytesBigEndian(this uint value)
Parameters
Type |
Name |
Description |
UInt32 |
value |
|
Returns
ToBytesBigEndian(UInt32, Allocator)
Declaration
public static NativeArray<byte> ToBytesBigEndian(this uint value, Allocator allocator)
Parameters
Type |
Name |
Description |
UInt32 |
value |
|
Allocator |
allocator |
|
Returns
Type |
Description |
NativeArray<Byte> |
|
ToBytesBigEndian(UInt64)
Declaration
public static byte[] ToBytesBigEndian(this ulong value)
Parameters
Type |
Name |
Description |
UInt64 |
value |
|
Returns
ToBytesBigEndian(UInt64, Allocator)
Declaration
public static NativeArray<byte> ToBytesBigEndian(this ulong value, Allocator allocator)
Parameters
Type |
Name |
Description |
UInt64 |
value |
|
Allocator |
allocator |
|
Returns
Type |
Description |
NativeArray<Byte> |
|