-
-
Notifications
You must be signed in to change notification settings - Fork 3
Exomia.Network.Extensions.Struct
from bytes extensions.
public static class Exomia.Network.Extensions.Struct.FromBytesExtension
void
FromBytes(this Byte[]
arr, T&
obj)
converts a byte array into a struct.
-
arr
- The byte array. -
obj
- [out] out struct.
void
FromBytes(this Byte[]
arr, Int32
offset, T&
obj)
converts a byte array into a struct.
-
arr
- The byte array. -
offset
- The offset. -
obj
- [out] out struct.
T
FromBytes(this Byte[]
arr)
converts a byte array into a struct.
-
arr
- The byte array.
T
FromBytes(this Byte[]
arr, Int32
offset)
converts a byte array into a struct.
-
arr
- The byte array. -
offset
- The offset.
void
FromBytesUnsafe(this Byte[]
arr, T&
obj)
converts a byte array into a struct.
-
arr
- The byte array. -
obj
- [out] out struct.
void
FromBytesUnsafe(this Byte[]
arr, Int32
offset, T&
obj)
converts a byte array into a struct.
-
arr
- The byte array. -
offset
- The offset. -
obj
- [out] out struct.
T
FromBytesUnsafe(this Byte[]
arr)
converts a byte array into a struct.
-
arr
- The byte array.
T
FromBytesUnsafe(this Byte[]
arr, Int32
offset)
converts a byte array into a struct.
-
arr
- The byte array. -
offset
- The offset.
void
FromBytesUnsafe2(this Byte[]
arr, T&
obj)
converts a byte array into a struct.
-
arr
- The byte array. -
obj
- [out] out struct.
void
FromBytesUnsafe2(this Byte[]
arr, Int32
offset, T&
obj)
converts a byte array into a struct.
-
arr
- The byte array. -
offset
- The offset. -
obj
- [out] out struct.
T
FromBytesUnsafe2(this Byte[]
arr)
converts a byte array into a struct.
-
arr
- The byte array.
T
FromBytesUnsafe2(this Byte[]
arr, Int32
offset)
converts a byte array into a struct.
-
arr
- The byte array. -
offset
- The offset.
to bytes extensions.
public static class Exomia.Network.Extensions.Struct.ToBytesExtension
Byte[]
ToBytes(this T
data, Int32&
length)
converts a struct into a byte array.
-
data
- The data. -
length
- [out] out the size of T.
void
ToBytes(this T
data, Byte[]&
arr, Int32&
length)
converts a struct into a byte array.
-
data
- The data. -
arr
- [out] out byte array. -
length
- [out] out the size of T.
void
ToBytes(this T
data, Byte[]&
arr, Int32
offset, Int32&
length)
converts a struct into a byte array.
-
data
- The data. -
arr
- [in,out] ref byte array. -
offset
- offset. -
length
- [out] out the size of T.
Byte[]
ToBytesUnsafe(this T
data, Int32&
length)
converts a struct into a byte array.
-
data
- The data. -
length
- [out] out the size of T.
void
ToBytesUnsafe(this T
data, Byte[]&
arr, Int32&
length)
converts a struct into a byte array.
-
data
- The data. -
arr
- [out] out byte array. -
length
- [out] out the size of T.
void
ToBytesUnsafe(this T
data, Byte[]&
arr, Int32
offset, Int32&
length)
converts a struct into a byte array.
-
data
- The data. -
arr
- [in,out] out byte array. -
offset
- offset. -
length
- [out] out the size of T.
Byte[]
ToBytesUnsafe2(this T
data, Int32&
length)
converts a struct into a byte array.
-
data
- The data. -
length
- [out] out the size of T.
void
ToBytesUnsafe2(this T
data, Byte[]&
arr, Int32&
length)
converts a struct into a byte array.
-
data
- The data. -
arr
- [out] out byte array. -
length
- [out] out the size of T.
void
ToBytesUnsafe2(this T
data, Byte[]&
arr, Int32
offset, Int32&
length)
converts a struct into a byte array.
-
data
- The data. -
arr
- [in,out] out byte array. -
offset
- offset. -
length
- [out] out the size of T.