Hatch Game Engine Documentation v1.4.0
The documentation for the Hatch Game Engine
Loading...
Searching...
No Matches
Serializer Class Reference

Functions for serializing values. More...

Public Member Functions

void WriteToStream (stream stream, value value)
 Serializes a value into a stream.
value ReadFromStream (stream stream)
 Deserializes a value from a stream.

Detailed Description

Functions for serializing values.


Supported types:

  • integer
  • decimal
  • null
  • string
  • array
  • map

Member Function Documentation

◆ ReadFromStream()

value Serializer.ReadFromStream ( stream stream)

Deserializes a value from a stream.

Parameters
streamThe stream.
Returns
The deserialized value.

◆ WriteToStream()

void Serializer.WriteToStream ( stream stream,
value value )

Serializes a value into a stream.

Parameters
streamThe stream.
valueThe value to serialize.