Skip to content

Exomia.Network.Extensions.Struct

Daniel Baetz edited this page Jun 19, 2019 · 6 revisions

FromBytesExtensions

from bytes extensions.

public static class Exomia.Network.Extensions.Struct.FromBytesExtensions

Static Methods

Type Name Summary
void FromBytes(this Byte[] arr, T& obj) converts a byte array into a struct.
void FromBytes(this Byte[] arr, Int32 offset, T& obj) converts a byte array into a struct.
T FromBytes(this Byte[] arr) converts a byte array into a struct.
T FromBytes(this Byte[] arr, Int32 offset) converts a byte array into a struct.
void FromBytesUnsafe(this Byte[] arr, T& obj) converts a byte array into a struct.
void FromBytesUnsafe(this Byte[] arr, Int32 offset, T& obj) converts a byte array into a struct.
T FromBytesUnsafe(this Byte[] arr) converts a byte array into a struct.
T FromBytesUnsafe(this Byte[] arr, Int32 offset) converts a byte array into a struct.
void FromBytesUnsafe2(this Byte[] arr, T& obj) converts a byte array into a struct.
void FromBytesUnsafe2(this Byte[] arr, Int32 offset, T& obj) converts a byte array into a struct.
T FromBytesUnsafe2(this Byte[] arr) converts a byte array into a struct.
T FromBytesUnsafe2(this Byte[] arr, Int32 offset) converts a byte array into a struct.

ToBytesExtensions

to bytes extensions.

public static class Exomia.Network.Extensions.Struct.ToBytesExtensions

Static Methods

Type Name Summary
Byte[] ToBytes(this T data, Int32& length) converts a struct into a byte array.
void ToBytes(this T data, Byte[]& arr, Int32& length) converts a struct into a byte array.
void ToBytes(this T data, Byte[]& arr, Int32 offset, Int32& length) converts a struct into a byte array.
Byte[] ToBytesUnsafe(this T data, Int32& length) converts a struct into a byte array.
void ToBytesUnsafe(this T data, Byte[]& arr, Int32& length) converts a struct into a byte array.
void ToBytesUnsafe(this T data, Byte[]& arr, Int32 offset, Int32& length) converts a struct into a byte array.
Byte[] ToBytesUnsafe2(this T data, Int32& length) converts a struct into a byte array.
void ToBytesUnsafe2(this T data, Byte[]& arr, Int32& length) converts a struct into a byte array.
void ToBytesUnsafe2(this T data, Byte[]& arr, Int32 offset, Int32& length) converts a struct into a byte array.