Lines Matching refs:reader

3497                 var reader = new FileReader();
3499 reader.onload = function(e) {
3502 reader.onerror = function(e) {
3505 reader.readAsArrayBuffer(data);
3565 if (!this.reader.readAndCheckSignature(expectedSignature)) {
3566 this.reader.index -= 4;
3567 var signature = this.reader.readString(4);
3578 var currentIndex = this.reader.index;
3579 this.reader.setIndex(askedIndex);
3580 var signature = this.reader.readString(4);
3582 this.reader.setIndex(currentIndex);
3589 this.diskNumber = this.reader.readInt(2);
3590 this.diskWithCentralDirStart = this.reader.readInt(2);
3591 this.centralDirRecordsOnThisDisk = this.reader.readInt(2);
3592 this.centralDirRecords = this.reader.readInt(2);
3593 this.centralDirSize = this.reader.readInt(4);
3594 this.centralDirOffset = this.reader.readInt(4);
3596 this.zipCommentLength = this.reader.readInt(2);
3600 var zipComment = this.reader.readData(this.zipCommentLength);
3614 this.zip64EndOfCentralSize = this.reader.readInt(8);
3615 this.reader.skip(4);
3618 this.diskNumber = this.reader.readInt(4);
3619 this.diskWithCentralDirStart = this.reader.readInt(4);
3620 this.centralDirRecordsOnThisDisk = this.reader.readInt(8);
3621 this.centralDirRecords = this.reader.readInt(8);
3622 this.centralDirSize = this.reader.readInt(8);
3623 this.centralDirOffset = this.reader.readInt(8);
3632 extraFieldId = this.reader.readInt(2);
3633 extraFieldLength = this.reader.readInt(4);
3634 extraFieldValue = this.reader.readData(extraFieldLength);
3646 this.diskWithZip64CentralDirStart = this.reader.readInt(4);
3647 this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8);
3648 this.disksCount = this.reader.readInt(4);
3660 this.reader.setIndex(file.localHeaderOffset);
3662 file.readLocalPart(this.reader);
3673 this.reader.setIndex(this.centralDirOffset);
3674 while (this.reader.readAndCheckSignature(sig.CENTRAL_FILE_HEADER)) {
3678 file.readCentralPart(this.reader);
3698 var offset = this.reader.lastIndexOfSignature(sig.CENTRAL_DIRECTORY_END);
3715 this.reader.setIndex(offset);
3744 offset = this.reader.lastIndexOfSignature(sig.ZIP64_CENTRAL_DIRECTORY_LOCATOR);
3748 this.reader.setIndex(offset);
3755 …this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(sig.ZIP64_CENTRAL_DIREC…
3760 this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir);
3781 this.reader.zero = extraBytes;
3788 this.reader = readerFor(data);
3866 readLocalPart: function(reader) { argument
3874 reader.skip(22);
3886 this.fileNameLength = reader.readInt(2);
3887 …localExtraFieldsLength = reader.readInt(2); // can't be sure this will be the same as the central …
3889 this.fileName = reader.readData(this.fileNameLength);
3890 reader.skip(localExtraFieldsLength);
3900 …ect(this.compressedSize, this.uncompressedSize, this.crc32, compression, reader.readData(this.comp…
3907 readCentralPart: function(reader) { argument
3908 this.versionMadeBy = reader.readInt(2);
3909 reader.skip(2);
3911 this.bitFlag = reader.readInt(2);
3912 this.compressionMethod = reader.readString(2);
3913 this.date = reader.readDate();
3914 this.crc32 = reader.readInt(4);
3915 this.compressedSize = reader.readInt(4);
3916 this.uncompressedSize = reader.readInt(4);
3917 var fileNameLength = reader.readInt(2);
3918 this.extraFieldsLength = reader.readInt(2);
3919 this.fileCommentLength = reader.readInt(2);
3920 this.diskNumberStart = reader.readInt(2);
3921 this.internalFileAttributes = reader.readInt(2);
3922 this.externalFileAttributes = reader.readInt(4);
3923 this.localHeaderOffset = reader.readInt(4);
3930 reader.skip(fileNameLength);
3931 this.readExtraFields(reader);
3932 this.parseZIP64ExtraField(reader);
3933 this.fileComment = reader.readData(this.fileCommentLength);
3996 readExtraFields: function(reader) { argument
3997 var end = reader.index + this.extraFieldsLength,
4006 while (reader.index + 4 < end) {
4007 extraFieldId = reader.readInt(2);
4008 extraFieldLength = reader.readInt(2);
4009 extraFieldValue = reader.readData(extraFieldLength);
4018 reader.setIndex(end);