(bytes: Uint8Array, view: DataView, at: number, record: EntryRecord)
| 948 | const timestampLength = (record: EntryRecord): number => record.seconds === undefined ? 0 : 9 |
| 949 | |
| 950 | const writeTimestamp = (bytes: Uint8Array, view: DataView, at: number, record: EntryRecord): void => { |
| 951 | if (record.seconds === undefined) return |
| 952 | view.setUint16(at, EXTRA_TIMESTAMP, true) |
| 953 | view.setUint16(at + 2, 5, true) |
| 954 | bytes[at + 4] = 1 |
| 955 | view.setUint32(at + 5, record.seconds, true) |
| 956 | } |
| 957 | |
| 958 | const localHeader = (record: EntryRecord): Uint8Array => { |
| 959 | const { zip64 } = record |
no outgoing calls
no test coverage detected