Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public static void PackDirect(Packer packer, Packer.PackerObject packerObject)
 {
     ByteArraySerializer.PackDirect(packer, packerObject.data);
     MetaSerializer.PackDirect(packer, packerObject.meta);
 }