code
stringlengths
24
2.07M
docstring
stringlengths
25
85.3k
func_name
stringlengths
1
92
language
stringclasses
1 value
repo
stringlengths
5
64
path
stringlengths
4
172
url
stringlengths
44
218
license
stringclasses
7 values
function getUint16(view, offset) { return view.getUint16(offset, true); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
getUint16
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
function getUint32(view, offset) { return view.getUint32(offset, true); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
getUint32
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
function getBigUint64(view, offset) { return Number(view.getBigUint64(offset, true)); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
getBigUint64
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
function setUint32$1(view, offset, value) { view.setUint32(offset, value, true); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
setUint32$1
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
function getDataView$1(array) { return new DataView(array.buffer); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
getDataView$1
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
constructor(writer, options = {}) { writer = initWriter(writer); const addSplitZipSignature = writer.availableSize !== UNDEFINED_VALUE && writer.availableSize > 0 && writer.availableSize !== Infinity && writer.maxSize !== UNDEFINED_VALUE && writer.maxSize > 0 && writer.maxSize !== Infinity; Object.assi...
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
constructor
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
async add(name = "", reader, options = {}) { const zipWriter = this; const { pendingAddFileCalls, config } = zipWriter; if (workers < config.maxWorkers) { workers++; } else { await new Promise(resolve => pendingEntries.push(resolve)); } let promiseAddFile; try { name = name.t...
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
add
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
async close(comment = new Uint8Array(), options = {}) { const zipWriter = this; const { pendingAddFileCalls, writer } = this; const { writable } = writer; while (pendingAddFileCalls.size) { await Promise.allSettled(Array.from(pendingAddFileCalls)); } await closeFile(this, comment, options); con...
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
close
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
constructor(options = {}) { const { readable, writable } = new TransformStream(); this.readable = readable; this.zipWriter = new ZipWriter(writable, options); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
constructor
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
transform(path) { const { readable, writable } = new TransformStream({ flush: () => { this.zipWriter.close(); } }); this.zipWriter.add(path, readable); return { readable: this.readable, writable }; }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
transform
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
writable(path) { const { readable, writable } = new TransformStream(); this.zipWriter.add(path, readable); return writable; }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
writable
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
close(comment = undefined, options = {}) { return this.zipWriter.close(comment, options); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
close
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
async function addFile(zipWriter, name, reader, options) { name = name.trim(); const msDosCompatible = getOptionValue(zipWriter, options, PROPERTY_NAME_MS_DOS_COMPATIBLE); const versionMadeBy = getOptionValue(zipWriter, options, PROPERTY_NAME_VERSION_MADE_BY, msDosCompatible ? 20 : 768); const executable = getO...
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
addFile
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
async function getFileEntry(zipWriter, name, reader, entryInfo, options) { const { files, writer } = zipWriter; const { keepOrder, dataDescriptor, signal } = options; const { headerInfo } = entryInfo; const { usdz } = zipWriter.options; const previousFileEntry = Array.from(files.values...
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
getFileEntry
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
function requestLockCurrentFileEntry() { fileEntry.lock = new Promise(resolve => releaseLockCurrentFileEntry = resolve); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
requestLockCurrentFileEntry
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
async function requestLockWriter() { zipWriter.writerLocked = true; const { lockWriter } = zipWriter; zipWriter.lockWriter = new Promise(resolve => releaseLockWriter = () => { zipWriter.writerLocked = false; resolve(); }); await lockWriter; }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
requestLockWriter
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
async function skipDiskIfNeeded(writable) { if (getLength(headerInfo.localHeaderArray) > writer.availableSize) { writer.availableSize = 0; await writeData(writable, new Uint8Array()); } }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
skipDiskIfNeeded
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
async function createFileEntry(reader, writer, { diskNumberStart, lock }, entryInfo, config, options) { const { headerInfo, dataDescriptorInfo, metadataSize } = entryInfo; const { localHeaderArray, headerArray, lastModDate, rawLastModDate, encrypted, compressed, version, compressi...
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
createFileEntry
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
function getHeaderInfo(options) { const { rawFilename, lastModDate, lastAccessDate, creationDate, level, zip64, zipCrypto, useUnicodeFileNames, dataDescriptor, directory, rawExtraField, encryptionStrength, extendedTimestamp, encrypted } = options; let { version, compressi...
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
getHeaderInfo
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
function appendExtraFieldUSDZ(entryInfo, zipWriterOffset) { const { headerInfo } = entryInfo; let { localHeaderArray, extraFieldLength } = headerInfo; let localHeaderArrayView = getDataView(localHeaderArray); let extraBytesLength = 64 - ((zipWriterOffset + getLength(localHeaderArray)) % 64); if (extraBytesLen...
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
appendExtraFieldUSDZ
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
function getDataDescriptorInfo(options) { const { zip64, dataDescriptor, dataDescriptorSignature } = options; let dataDescriptorArray = new Uint8Array(); let dataDescriptorView, dataDescriptorOffset = 0; if (dataDescriptor) { dataDescriptorArray = new Uint8Array(zip64 ? (dataDescriptorSignature ? ...
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
getDataDescriptorInfo
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
function setEntryInfo(entryInfo, options) { const { signature, rawExtraFieldZip64, compressedSize, uncompressedSize, headerInfo, dataDescriptorInfo } = entryInfo; const { headerView, encrypted } = headerInfo; const { dataDescriptorView, dataDescriptorOffset } = dataDescriptorIn...
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
setEntryInfo
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
async function writeExtraHeaderInfo(fileEntry, entryData, writable, { zipCrypto }) { let arrayBuffer; arrayBuffer = await entryData.slice(0, 26).arrayBuffer(); if (arrayBuffer.byteLength != 26) { arrayBuffer = arrayBuffer.slice(0, 26); } const arrayBufferView = new DataView(arrayBuffer); if (!fileEntry.e...
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
writeExtraHeaderInfo
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
function setZip64ExtraInfo(fileEntry, options) { const { rawExtraFieldZip64, offset, diskNumberStart } = fileEntry; const { zip64UncompressedSize, zip64CompressedSize, zip64Offset, zip64DiskNumberStart } = options; const rawExtraFieldZip64View = getDataView(rawExtraFieldZip64); let rawExtraFieldZip64Offset = 4;...
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
setZip64ExtraInfo
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
async function closeFile(zipWriter, comment, options) { const { files, writer } = zipWriter; const { diskOffset, writable } = writer; let { diskNumber } = writer; let offset = 0; let directoryDataLength = 0; let directoryOffset = zipWriter.offset - diskOffset; let filesLength = files.size; for (const [,...
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
closeFile
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
async function writeData(writable, array) { const streamWriter = writable.getWriter(); try { await streamWriter.ready; writable.size += getLength(array); await streamWriter.write(array); } finally { streamWriter.releaseLock(); } }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
writeData
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
function getTimeNTFS(date) { if (date) { return ((BigInt(date.getTime()) + BigInt(11644473600000)) * BigInt(10000)); } }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
getTimeNTFS
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
function getOptionValue(zipWriter, options, name, defaultValue) { const result = options[name] === UNDEFINED_VALUE ? zipWriter.options[name] : options[name]; return result === UNDEFINED_VALUE ? defaultValue : result; }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
getOptionValue
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
function getMaximumCompressedSize(uncompressedSize) { return uncompressedSize + (5 * (Math.floor(uncompressedSize / 16383) + 1)); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
getMaximumCompressedSize
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
function setUint8(view, offset, value) { view.setUint8(offset, value); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
setUint8
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
function setUint16(view, offset, value) { view.setUint16(offset, value, true); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
setUint16
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
function setUint32(view, offset, value) { view.setUint32(offset, value, true); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
setUint32
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
function setBigUint64(view, offset, value) { view.setBigUint64(offset, value, true); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
setBigUint64
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
function arraySet(array, typedArray, offset) { array.set(typedArray, offset); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
arraySet
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
function getDataView(array) { return new DataView(array.buffer); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
getDataView
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
function getLength(...arrayLikes) { let result = 0; arrayLikes.forEach(arrayLike => arrayLike && (result += arrayLike.length)); return result; }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
getLength
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
constructor(fs, name, params, parent) { const zipEntry = this; if (fs.root && parent && parent.getChildByName(name)) { throw new Error("Entry filename already exists"); } if (!params) { params = {}; } Object.assign(zipEntry, { fs, name, data: params.data, options: params.option...
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
constructor
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
moveTo(target) { // deprecated const zipEntry = this; zipEntry.fs.move(zipEntry, target); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
moveTo
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
getFullname() { return this.getRelativeName(); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
getFullname
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
getRelativeName(ancestor = this.fs.root) { const zipEntry = this; let relativeName = zipEntry.name; let entry = zipEntry.parent; while (entry && entry != ancestor) { relativeName = (entry.name ? entry.name + "/" : "") + relativeName; entry = entry.parent; } return relativeName; }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
getRelativeName
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
isDescendantOf(ancestor) { let entry = this.parent; while (entry && entry.id != ancestor.id) { entry = entry.parent; } return Boolean(entry); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
isDescendantOf
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
rename(name) { const parent = this.parent; if (parent && parent.getChildByName(name)) { throw new Error("Entry filename already exists"); } else { this.name = name; } }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
rename
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
constructor(fs, name, params, parent) { super(fs, name, params, parent); const zipEntry = this; zipEntry.Reader = params.Reader; zipEntry.Writer = params.Writer; if (params.getData) { zipEntry.getData = params.getData; } }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
constructor
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
clone() { return new ZipFileEntry(this.fs, this.name, this); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
clone
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
async getData(writer, options = {}) { const zipEntry = this; if (!writer || (writer.constructor == zipEntry.Writer && zipEntry.data)) { return zipEntry.data; } else { const reader = zipEntry.reader = new zipEntry.Reader(zipEntry.data, options); const uncompressedSize = zipEntry.data ? zipEntry.data...
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
getData
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
isPasswordProtected() { return this.data.encrypted; }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
isPasswordProtected
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
async checkPassword(password, options = {}) { const zipEntry = this; if (zipEntry.isPasswordProtected()) { options.password = password; options.checkPasswordOnly = true; try { await zipEntry.data.getData(null, options); return true; } catch (error) { if (error.message == ERR_INVALID...
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
checkPassword
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
getText(encoding, options) { return this.getData(new TextWriter(encoding), options); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
getText
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
getBlob(mimeType, options) { return this.getData(new BlobWriter(mimeType), options); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
getBlob
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
getData64URI(mimeType, options) { return this.getData(new Data64URIWriter(mimeType), options); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
getData64URI
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
getUint8Array(options) { return this.getData(new Uint8ArrayWriter(), options); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
getUint8Array
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
getWritable(writable = new WritableStream(), options) { return this.getData({ writable }, options); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
getWritable
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
replaceBlob(blob) { Object.assign(this, { data: blob, Reader: BlobReader, Writer: BlobWriter, reader: null }); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
replaceBlob
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
replaceText(text) { Object.assign(this, { data: text, Reader: TextReader, Writer: TextWriter, reader: null }); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
replaceText
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
replaceData64URI(dataURI) { Object.assign(this, { data: dataURI, Reader: Data64URIReader, Writer: Data64URIWriter, reader: null }); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
replaceData64URI
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
replaceUint8Array(array) { Object.assign(this, { data: array, Reader: Uint8ArrayReader, Writer: Uint8ArrayWriter, reader: null }); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
replaceUint8Array
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
replaceReadable(readable) { Object.assign(this, { data: null, Reader: function () { return { readable }; }, Writer: null, reader: null }); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
replaceReadable
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
constructor(fs, name, params, parent) { super(fs, name, params, parent); this.directory = true; }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
constructor
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
clone(deepClone) { const zipEntry = this; const clonedEntry = new ZipDirectoryEntry(zipEntry.fs, zipEntry.name); if (deepClone) { clonedEntry.children = zipEntry.children.map(child => { const childClone = child.clone(deepClone); childClone.parent = clonedEntry; return childClone; }); ...
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
clone
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
addDirectory(name, options) { return addChild(this, name, { options }, true); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
addDirectory
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
addText(name, text, options = {}) { return addChild(this, name, { data: text, Reader: TextReader, Writer: TextWriter, options, uncompressedSize: text.length }); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
addText
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
addBlob(name, blob, options = {}) { return addChild(this, name, { data: blob, Reader: BlobReader, Writer: BlobWriter, options, uncompressedSize: blob.size }); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
addBlob
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
addData64URI(name, dataURI, options = {}) { let dataEnd = dataURI.length; while (dataURI.charAt(dataEnd - 1) == "=") { dataEnd--; } const dataStart = dataURI.indexOf(",") + 1; return addChild(this, name, { data: dataURI, Reader: Data64URIReader, Writer: Data64URIWriter, options, u...
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
addData64URI
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
addUint8Array(name, array, options = {}) { return addChild(this, name, { data: array, Reader: Uint8ArrayReader, Writer: Uint8ArrayWriter, options, uncompressedSize: array.length }); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
addUint8Array
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
addHttpContent(name, url, options = {}) { return addChild(this, name, { data: url, Reader: class extends HttpReader { constructor(url) { super(url, options); } }, options }); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
addHttpContent
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
constructor(url) { super(url, options); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
constructor
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
addReadable(name, readable, options = {}) { return addChild(this, name, { Reader: function () { return { readable }; }, options }); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
addReadable
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
addFileSystemEntry(fileSystemEntry, options = {}) { return addFileSystemHandle(this, fileSystemEntry, options); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
addFileSystemEntry
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
addFileSystemHandle(handle, options = {}) { return addFileSystemHandle(this, handle, options); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
addFileSystemHandle
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
addFile(file, options = {}) { if (!options.lastModDate) { options.lastModDate = new Date(file.lastModified); } return addChild(this, file.name, { data: file, Reader: function () { const readable = file.stream(); const size = file.size; return { readable, size }; }, options, ...
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
addFile
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
addData(name, params) { return addChild(this, name, params); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
addData
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
importBlob(blob, options) { return this.importZip(new BlobReader(blob), options); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
importBlob
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
importData64URI(dataURI, options) { return this.importZip(new Data64URIReader(dataURI), options); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
importData64URI
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
importUint8Array(array, options) { return this.importZip(new Uint8ArrayReader(array), options); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
importUint8Array
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
importHttpContent(url, options) { return this.importZip(new HttpReader(url, options), options); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
importHttpContent
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
importReadable(readable, options) { return this.importZip({ readable }, options); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
importReadable
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
exportBlob(options = {}) { return this.exportZip(new BlobWriter(options.mimeType || "application/zip"), options); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
exportBlob
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
exportData64URI(options = {}) { return this.exportZip(new Data64URIWriter(options.mimeType || "application/zip"), options); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
exportData64URI
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
exportUint8Array(options = {}) { return this.exportZip(new Uint8ArrayWriter(), options); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
exportUint8Array
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
async exportWritable(writable = new WritableStream(), options = {}) { await this.exportZip({ writable }, options); return writable; }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
exportWritable
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
async importZip(reader, options = {}) { await initStream(reader); const zipReader = new ZipReader(reader, options); const importedEntries = []; const entries = await zipReader.getEntries(); for (const entry of entries) { let parent = this; try { const path = entry.filename.split("/"); c...
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
importZip
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
async exportZip(writer, options) { const zipEntry = this; if (options.bufferedWrite === UNDEFINED_VALUE) { options.bufferedWrite = true; } await Promise.all([initReaders(zipEntry, options.readerOptions), initStream(writer)]); const zipWriter = new ZipWriter(writer, options); await exportZip(zipWri...
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
exportZip
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
getChildByName(name) { const children = this.children; for (let childIndex = 0; childIndex < children.length; childIndex++) { const child = children[childIndex]; if (child.name == name) { return child; } } }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
getChildByName
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
isPasswordProtected() { const children = this.children; for (let childIndex = 0; childIndex < children.length; childIndex++) { const child = children[childIndex]; if (child.isPasswordProtected()) { return true; } } return false; }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
isPasswordProtected
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
async checkPassword(password, options = {}) { const children = this.children; const result = await Promise.all(children.map(child => child.checkPassword(password, options))); return !result.includes(false); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
checkPassword
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
get children() { return this.root.children; }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
children
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
remove(entry) { detach(entry); this.entries[entry.id] = null; }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
remove
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
move(entry, destination) { if (entry == this.root) { throw new Error("Root directory cannot be moved"); } else { if (destination.directory) { if (!destination.isDescendantOf(entry)) { if (entry != destination) { if (destination.getChildByName(entry.name)) { throw new Error("Entry...
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
move
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
find(fullname) { const path = fullname.split("/"); let node = this.root; for (let index = 0; node && index < path.length; index++) { node = node.getChildByName(path[index]); } return node; }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
find
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
getById(id) { return this.entries[id]; }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
getById
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
getChildByName(name) { return this.root.getChildByName(name); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
getChildByName
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
addDirectory(name, options) { return this.root.addDirectory(name, options); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
addDirectory
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
addText(name, text, options) { return this.root.addText(name, text, options); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
addText
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
addBlob(name, blob, options) { return this.root.addBlob(name, blob, options); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
addBlob
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
addData64URI(name, dataURI, options) { return this.root.addData64URI(name, dataURI, options); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
addData64URI
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
addUint8Array(name, array, options) { return this.root.addUint8Array(name, array, options); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
addUint8Array
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
addHttpContent(name, url, options) { return this.root.addHttpContent(name, url, options); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
addHttpContent
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
addReadable(name, readable, options) { return this.root.addReadable(name, readable, options); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
addReadable
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
addFileSystemEntry(fileSystemEntry, options) { return this.root.addFileSystemEntry(fileSystemEntry, options); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
addFileSystemEntry
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause
addFileSystemHandle(handle, options) { return this.root.addFileSystemHandle(handle, options); }
HMAC with the specified hash function. @constructor @param {bitArray} key the key for HMAC. @param {Object} [Hash=hash.sha1] The hash function to use.
addFileSystemHandle
javascript
gildas-lormeau/zip.js
dist/zip-fs.js
https://github.com/gildas-lormeau/zip.js/blob/master/dist/zip-fs.js
BSD-3-Clause