TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

interface ITypeSerializer in Tinman.Core.IO.Serialization

Base interface for classes that perform serialization of concrete types.

[ShutdownSurvive]
interface ITypeSerializer with <T>  
  base of ITypeSerializerEx
  TypeSerializerBase

Methods

ReadValue

Deserializes a struct value form the given serialization stream.

method ReadValue (ISerializer data)
type T
params data [not-null] The serialization stream.
returns The deserialized value.

Exceptions:

ReadValueArray

Deserializes a struct value array form the given serialization stream.

method ReadValueArray (ISerializer data)
type T[]
params data [not-null] The serialization stream.
returns The deserialized value.

Exceptions:

ReadValueCollection

Deserializes a struct value collection from the given serialization stream.

method ReadValueCollection (ISerializer data, IBag<T> values)
params data [not-null] The serialization stream.
  values [not-null] Output for deserialized struct values.

Exceptions:

WriteValue

Serializes the given struct value to the serialization stream.

method WriteValue (ISerializer data, T value)
params data [not-null] The serialization stream.
  value The struct value to serialize.

Exceptions:

WriteValueArray

Serializes the given struct value array to the serialization stream.

method WriteValueArray (ISerializer data, T[] values)
params data [not-null] The serialization stream.
  values The struct values to serialize.

Exceptions:


Serializes the given struct value array to the serialization stream.

method WriteValueArray (ISerializer data, T[] values, int32 first, int32 count)
params data [not-null] The serialization stream.
  values The struct values to serialize.
  first [>=0] Index of first array element to write.
  count [>=0] Number array elements to write.

Exceptions:

WriteValueCollection

Serializes the given struct value collection to the serialization stream.

method WriteValueCollection (ISerializer data, IBagConst<T> values)
params data [not-null] The serialization stream.
  values The struct values to serialize.

Exceptions: