public void WriteObject(object obj) { SmartSerializer serializer = new SmartSerializer(); byte[] serialized = serializer.Serialize(obj); WriteInteger(serialized.Length); WriteBytes(serialized); }
public object ReadObject() { SmartSerializer serializer = new SmartSerializer(); return(serializer.Deserialize(ReadBytes(ReadInteger()))); }