UNPKG

@obsidize/tar-browserify

Version:

Browser-based tar utility for packing and unpacking tar files (stream-capable)

18 lines (17 loc) 1.03 kB
import { UstarHeaderField } from './ustar/ustar-header-field'; import { UstarHeaderLinkIndicatorType } from './ustar/ustar-header-link-indicator-type'; export declare namespace TarHeaderUtility { const CHECKSUM_SEED_STRING: string; const CHECKSUM_SEED: number; const ALL_FIELDS: UstarHeaderField<any>[]; const CHECKSUM_FIELDS: UstarHeaderField<any>[]; function isUstarSector(input: Uint8Array, offset?: number): boolean; function isTarHeaderLinkIndicatorTypeDirectory(type: UstarHeaderLinkIndicatorType | string): boolean; function isTarHeaderLinkIndicatorTypeFile(type: UstarHeaderLinkIndicatorType | string): boolean; function isTarHeaderLinkIndicatorTypePax(type: UstarHeaderLinkIndicatorType | string): boolean; /** * Searches the given input buffer for a USTAR header tar sector, starting at the given offset. * Returns -1 if no valid header sector is found. */ function findNextUstarSectorOffset(input: Uint8Array | null, offset?: number): number; }