Enumeration UstarHeaderFieldType

Determines how a tar header field is interpreted to and from a Uint8Array.

Enumeration Members

ASCII: "ASCII"

Bytes interpreted as char codes.

ASCII_PADDED_END: "ASCII_PADDED_END"

Bytes interpreted as char codes with spaces and trailing NUL characters.

Example

'Test File Name.txt\0\0\0\0\0\0\0....'
INTEGER_OCTAL: "INTEGER_OCTAL"

Bytes interpreted as a padded ascii octal number (i.e. ascii in range ['0' - '7']). USTAR format dictates that all octal integer values of this type should be front-padded with zeroes.

Example

'0000232 ' // (equates to decimal 1234)
INTEGER_OCTAL_TIMESTAMP: "INTEGER_OCTAL_TIMESTAMP"

Special flavor of an integer octal that also transforms the value by 1000x to add the milliseconds frame for a Date value.

Generated using TypeDoc