コード例 #1
0
        public static Packer.PackerObject UnpackDirect(Packer packer)
        {
            var packerObject = new Packer.PackerObject();

            packerObject.data = ByteArraySerializer.UnpackDirect(packer);
            packerObject.meta = MetaSerializer.UnpackDirect(packer);

            return(packerObject);
        }
コード例 #2
0
 public object Unpack(Packer packer)
 {
     return(MetaSerializer.UnpackDirect(packer));
 }
コード例 #3
0
 public static void PackDirect(Packer packer, Packer.PackerObject packerObject)
 {
     ByteArraySerializer.PackDirect(packer, packerObject.data);
     MetaSerializer.PackDirect(packer, packerObject.meta);
 }
コード例 #4
0
        public void Pack(Packer packer, object obj)
        {
            var meta = (Packer.Meta)obj;

            MetaSerializer.PackDirect(packer, meta);
        }