deserializing compressed file from a vector of bytes

Both read1 and get will implicitly decompress a compressed file. If I have a c function that returns the contents of the compressed file as a list of bytes, is there anyway to to deserialize it to same result as if i called get on the underlying file?

For uncompressed files, i can change the header and use -9! to deserialize. but compressed files are quite different than the output of -18!

no, the decompression code is not designed to work with byte vectors directly