BinarySerializerDeserializeValueArrayT Method

Deserializes an array of ValueType objects from a byte array that was previously serialized by SerializeValueArray method.

Definition

Namespace: KGySoft.Serialization.Binary
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public static T[] DeserializeValueArray<T>(
	byte[] data,
	int offset,
	int count
)
where T : struct, new()

Parameters

data  Byte
The byte array that contains the byte representation of the structures.
offset  Int32
The offset that points to the beginning of the serialized data.
count  Int32
Number of elements to deserialize from the data.

Type Parameters

T
Type of the elements in the deserialized array. Must be a ValueType.

Return Value

T
The deserialized ValueType object.

See Also