public static Packer.PackerObject UnpackDirect(Packer packer) { var packerObject = new Packer.PackerObject(); packerObject.data = ByteArraySerializer.UnpackDirect(packer); packerObject.meta = MetaSerializer.UnpackDirect(packer); return(packerObject); }
public object Unpack(Packer packer) { return(MetaSerializer.UnpackDirect(packer)); }
public static void PackDirect(Packer packer, Packer.PackerObject packerObject) { ByteArraySerializer.PackDirect(packer, packerObject.data); MetaSerializer.PackDirect(packer, packerObject.meta); }
public void Pack(Packer packer, object obj) { var meta = (Packer.Meta)obj; MetaSerializer.PackDirect(packer, meta); }