bundles / astropy latest / astropy / io / fits / hdu / compressed / _codecs / Gzip1 / encode
function
astropy.io.fits.hdu.compressed._codecs:Gzip1.encode
source: /astropy/io/fits/hdu/compressed/_codecs.py :128
Signature
def encode ( self , buf ) Summary
Compress the data in the buffer using the GZIP_1 algorithm.
Parameters
buf _likeThe buffer to compress.
Returns
: bytesThe compressed bytes.
Aliases
-
astropy.io.fits.hdu.compressed._codecs.Gzip1.encode