Scoop API

scoop:scoop.compression:0.1.0

GzipMetadata

class GzipMetadata

source · line 122
public
public class GzipMetadata public constructor(
    filename: List<Byte>? = None, comment: List<Byte>? = None,
    /**
     * The header modification timestamp in unsigned Unix seconds.
     */
    public val modifiedUnixSeconds: UInt = 0U,
        /**
         * Whether the encoder includes a gzip header CRC.
         */
        public val headerCrc: Boolean = false
)

Optional gzip header metadata with copied filename/comment byte arrays. This metadata does not change the uncompressed payload.

property filename

source · line 136
public
public val filename: Array<Byte>?

get: public read-only

An optional copied gzip original-filename field.

property comment

source · line 140
public
public val comment: Array<Byte>?

get: public read-only

An optional copied gzip comment field.

constructor constructor

source · line 122
public
constructor(filename: List<Byte>? = None, comment: List<Byte>? = None, public val modifiedUnixSeconds: UInt = 0U, public val headerCrc: Boolean = false)

property headerCrc

source · line 131
public
public val headerCrc: Boolean = false

get: public read-only

Whether the encoder includes a gzip header CRC.

property modifiedUnixSeconds

source · line 127
public
public val modifiedUnixSeconds: UInt = 0U

get: public read-only

The header modification timestamp in unsigned Unix seconds.