swc/crates/swc_bundler/tests/.cache/deno/11921180889ceb1e2e8489fd1fb40e2bb2475b4b.ts
2021-11-09 20:42:49 +09:00

39 lines
1.2 KiB
TypeScript

// Loaded from https://deno.land/x/compress@v0.3.8/zlib/zlib/gzheader.ts
export default class GZheader {
/* true if compressed data believed to be text */
text: number = 0;
/* modification time */
time: number = 0;
/* extra flags (not used when writing a gzip file) */
xflags: number = 0;
/* operating system */
os: number = 0;
/* pointer to extra field or Z_NULL if none */
extra: any = null;
/* extra field length (valid if extra != Z_NULL) */
extra_len: number = 0; // Actually, we don't need it in JS,
// but leave for few code modifications
//
// Setup limits is not necessary because in js we should not preallocate memory
// for inflate use constant limit in 65536 bytes
//
/* space at extra (only when reading header) */
// extra_max = 0;
/* pointer to zero-terminated file name or Z_NULL */
name: string = "";
/* space at name (only when reading header) */
// name_max = 0;
/* pointer to zero-terminated comment or Z_NULL */
comment: string = "";
/* space at comment (only when reading header) */
// comm_max = 0;
/* true if there was or will be a header crc */
hcrc: number = 0;
/* true when done reading gzip header (not used when writing a gzip file) */
done: boolean = false;
}