public static Packer.PackerObject UnpackDirect(Packer packer)
        {
            var packerObject = new Packer.PackerObject();

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

            return(packerObject);
        }
Beispiel #2
0
        public object Unpack(Packer packer)
        {
            var packerObject = new Packer.PackerObject();

            packerObject.meta = (Packer.Meta)packer.UnpackInternal();
            packerObject.data = (byte[])packer.UnpackInternal();

            return(packerObject);
        }
 public static void PackDirect(Packer packer, Packer.PackerObject packerObject)
 {
     ByteArraySerializer.PackDirect(packer, packerObject.data);
     MetaSerializer.PackDirect(packer, packerObject.meta);
 }