SerializationUtil

Description

static class Tinman.Core.IO.Serialization.SerializationUtil
<T ref : ISerializable>

Helper class for this namespace.

Public / Methods

Read​Array


[OwnerReturn]
public static method ReadArray → (1)

serializer in : ISerializer

[not-null]
The serializer to use.

returns → T [ ]

The read array.

Reads an array of objects.

This method can also be used to read elements that have been written using WriteCollection.

IOException

If an I/O error has occurred.

Read​Collection


public static method ReadCollection → (2)

serializer in : ISerializer

[not-null]
The serializer to use.

collection in : IBag<T>

[not-null]
The output collection.

Reads a collection of objects.

This method can also be used to read elements that have been written using WriteArray.

IOException

If an I/O error has occurred.

Write​Array


public static method WriteArray → (2)

serializer in : ISerializer

[not-null]
The serializer to use.

values in : T [ ]

The object array or null.

Serializes an array of objects.

This method can also be used to write elements that will be read using ReadCollection.

IOException

If an I/O error has occurred.

Write​Collection


public static method WriteCollection → (2)

serializer in : ISerializer

[not-null]
The serializer to use.

values in : IBagConst<T>

The object collection or null.

Writes a collection of objects.

This method can also be used to write elements that will be read using ReadArray.

IOException

If an I/O error has occurred.