Use direct pointer access (unsafe code) to speed up compression.
Use unsafe code to speed up decompression.