public override void Serialize(ref T obj, ArchiveMode mode, SerializationStream stream) { throw new NotImplementedException(); }
public static void Write <T>([NotNull] this SerializationStream stream, T obj) { Serialize(stream, ref obj, ArchiveMode.Serialize); }
public static void SerializeExtended <T>([NotNull] this SerializationStream stream, ref T obj, ArchiveMode mode, DataSerializer <T> dataSerializer = null) { MemberReuseSerializer <T> .SerializeExtended(ref obj, mode, stream, dataSerializer); }
public static SerializationStream Write([NotNull] this SerializationStream stream, byte[] values, int offset, int count) { stream.Serialize(values, offset, count); return(stream); }
public static SerializationStream Write([NotNull] this SerializationStream stream, sbyte value) { stream.Serialize(ref value); return(stream); }
/// <summary> /// Performs the first step of serialization or deserialization. /// </summary> /// <remarks> /// Typically, it will instantiate the object if [null], and if it's a collection clear it. /// </remarks> /// <param name="obj">The object to process.</param> /// <param name="mode">The serialization mode.</param> /// <param name="stream">The stream to serialize or deserialize to.</param> public abstract void PreSerialize(ref object obj, ArchiveMode mode, [NotNull] SerializationStream stream);