public override T Serialize <T>(T obj, string name = null) { UpdateCurrentSerializer(name); return(CurrentSerializer.Serialize(obj, name)); }
public override Pointer SerializePointer(Pointer obj, Pointer anchor = null, bool allowInvalid = false, string name = null) { UpdateCurrentSerializer(name); return(CurrentSerializer.SerializePointer(obj, anchor, allowInvalid, name)); }
public override Pointer <T> SerializePointer <T>(Pointer <T> obj, Pointer anchor = null, bool resolve = false, Action <T> onPreSerialize = null, bool allowInvalid = false, string name = null) { UpdateCurrentSerializer(name); return(CurrentSerializer.SerializePointer(obj, anchor, resolve, onPreSerialize, allowInvalid, name)); }
public override void DoEncoded(IStreamEncoder encoder, Action action) { SwitchSerializer(Deserializer); CurrentSerializer.DoEncoded(encoder, action); }
public override T SerializeChecksum <T>(T calculatedChecksum, string name = null) { SwitchSerializer(Deserializer); return(CurrentSerializer.SerializeChecksum(calculatedChecksum, name)); }
public override void SerializeBitValues <T>(Action <SerializeBits> serializeFunc) { SwitchSerializer(Deserializer); CurrentSerializer.SerializeBitValues <T>(serializeFunc); }
public override void Goto(Pointer offset) => CurrentSerializer.Goto(offset);
public override void Log(string logString) => CurrentSerializer.Log(logString);
public override T[] SerializeArraySize <T, U>(T[] obj, string name = null) { SwitchSerializer(Deserializer); return(CurrentSerializer.SerializeArraySize <T, U>(obj, name)); }
public override string SerializeString(string obj, long?length = null, Encoding encoding = null, string name = null) { UpdateCurrentSerializer(name); return(CurrentSerializer.SerializeString(obj, length, encoding, name)); }
public override void DoEndian(BinaryFile.Endian endianness, Action action) { CurrentSerializer.DoEndian(endianness, action); }
public override void DoEncoded(IStreamEncoder encoder, Action action, BinaryFile.Endian?endianness = null) { SwitchSerializer(Deserializer); CurrentSerializer.DoEncoded(encoder, action, endianness); }