public void OpBinaryPackUnpack() { var o1 = new Op() { Body = new ClassWithOneProp() { Name = "hello" } }; var payload = o1.ToBinary(); var o2 = Op.FromBinary(payload); var obj = (ClassWithOneProp)o2.Body; Assert.That(obj.Name, Is.EqualTo("hello")); }
public long Append(Op op) { return Advanced.Append(op.ToBinary()); }