IBinary

References
public interface IBinary
Interface to enforce support for binary (de)serialization. Do not implement this interface as a 3rd party developer. If you want to read and write your data to and from a GH archive, implement IStorable instead.

Methods

Read

#
void Read(BinaryReader reader, ReadContext context)
Read your data from a binary stream.
reader (BinaryReader)Object to read with.
context (ReadContext)Deserialisation context details.

Write

#
void Write(BinaryWriter writer, WriteContext context)
Write the data to a binary stream.
writer (BinaryWriter)Object to write with.
context (WriteContext)Serialisation context details.