Example #1
0
        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"));
        }
Example #2
0
 public long Append(Op op)
 {
     return Advanced.Append(op.ToBinary());
 }