PCPATCH * pc_patch_deserialize(const SERIALIZED_PATCH *serpatch, const PCSCHEMA *schema) { switch(schema->compression) { case PC_NONE: return pc_patch_uncompressed_deserialize(serpatch, schema); case PC_DIMENSIONAL: return pc_patch_dimensional_deserialize(serpatch, schema); case PC_GHT: pcerror("pc_patch_deserialize: GHT compression currently unsupported"); } pcerror("pc_patch_deserialize: unsupported compression type"); return NULL; }
PCPATCH * pc_patch_deserialize(const SERIALIZED_PATCH *serpatch, const PCSCHEMA *schema) { switch(serpatch->compression) { case PC_NONE: return pc_patch_uncompressed_deserialize(serpatch, schema); case PC_DIMENSIONAL: return pc_patch_dimensional_deserialize(serpatch, schema); case PC_GHT: return pc_patch_ght_deserialize(serpatch, schema); } pcerror("%s: unsupported compression type", __func__); return NULL; }