Lines Matching refs:reader

54432         var reader = new FileReader();
54434 reader.onload = function (e) {
54438 reader.onerror = function (e) {
54442 reader.readAsArrayBuffer(data);
54509 if (!this.reader.readAndCheckSignature(expectedSignature)) {
54510 this.reader.index -= 4;
54511 var signature = this.reader.readString(4);
54523 var currentIndex = this.reader.index;
54524 this.reader.setIndex(askedIndex);
54525 var signature = this.reader.readString(4);
54527 this.reader.setIndex(currentIndex);
54535 this.diskNumber = this.reader.readInt(2);
54536 this.diskWithCentralDirStart = this.reader.readInt(2);
54537 this.centralDirRecordsOnThisDisk = this.reader.readInt(2);
54538 this.centralDirRecords = this.reader.readInt(2);
54539 this.centralDirSize = this.reader.readInt(4);
54540 this.centralDirOffset = this.reader.readInt(4);
54541 …this.zipCommentLength = this.reader.readInt(2); // warning : the encoding depends of the system lo…
54545 var zipComment = this.reader.readData(this.zipCommentLength);
54560 this.zip64EndOfCentralSize = this.reader.readInt(8);
54561 this.reader.skip(4); // this.versionMadeBy = this.reader.readString(2);
54564 this.diskNumber = this.reader.readInt(4);
54565 this.diskWithCentralDirStart = this.reader.readInt(4);
54566 this.centralDirRecordsOnThisDisk = this.reader.readInt(8);
54567 this.centralDirRecords = this.reader.readInt(8);
54568 this.centralDirSize = this.reader.readInt(8);
54569 this.centralDirOffset = this.reader.readInt(8);
54578 extraFieldId = this.reader.readInt(2);
54579 extraFieldLength = this.reader.readInt(4);
54580 extraFieldValue = this.reader.readData(extraFieldLength);
54593 this.diskWithZip64CentralDirStart = this.reader.readInt(4);
54594 this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8);
54595 this.disksCount = this.reader.readInt(4);
54610 this.reader.setIndex(file.localHeaderOffset);
54612 file.readLocalPart(this.reader);
54623 this.reader.setIndex(this.centralDirOffset);
54625 while (this.reader.readAndCheckSignature(sig.CENTRAL_FILE_HEADER)) {
54629 file.readCentralPart(this.reader);
54649 var offset = this.reader.lastIndexOfSignature(sig.CENTRAL_DIRECTORY_END);
54666 this.reader.setIndex(offset);
54693 offset = this.reader.lastIndexOfSignature(sig.ZIP64_CENTRAL_DIRECTORY_LOCATOR);
54699 this.reader.setIndex(offset);
54705 …this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(sig.ZIP64_CENTRAL_DIREC…
54712 this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir);
54736 this.reader.zero = extraBytes;
54743 this.reader = readerFor(data);
54835 readLocalPart: function readLocalPart(reader) {
54842reader.skip(22); // in some zip created on windows, the filename stored in the central dir contain…
54854 this.fileNameLength = reader.readInt(2);
54855 …localExtraFieldsLength = reader.readInt(2); // can't be sure this will be the same as the central …
54858 this.fileName = reader.readData(this.fileNameLength);
54859 reader.skip(localExtraFieldsLength);
54872 …ect(this.compressedSize, this.uncompressedSize, this.crc32, compression, reader.readData(this.comp…
54879 readCentralPart: function readCentralPart(reader) {
54880 this.versionMadeBy = reader.readInt(2);
54881 reader.skip(2); // this.versionNeeded = reader.readInt(2);
54883 this.bitFlag = reader.readInt(2);
54884 this.compressionMethod = reader.readString(2);
54885 this.date = reader.readDate();
54886 this.crc32 = reader.readInt(4);
54887 this.compressedSize = reader.readInt(4);
54888 this.uncompressedSize = reader.readInt(4);
54889 var fileNameLength = reader.readInt(2);
54890 this.extraFieldsLength = reader.readInt(2);
54891 this.fileCommentLength = reader.readInt(2);
54892 this.diskNumberStart = reader.readInt(2);
54893 this.internalFileAttributes = reader.readInt(2);
54894 this.externalFileAttributes = reader.readInt(4);
54895 this.localHeaderOffset = reader.readInt(4);
54902 reader.skip(fileNameLength);
54903 this.readExtraFields(reader);
54904 this.parseZIP64ExtraField(reader);
54905 this.fileComment = reader.readData(this.fileCommentLength);
54939 parseZIP64ExtraField: function parseZIP64ExtraField(reader) {
54969 readExtraFields: function readExtraFields(reader) {
54970 var end = reader.index + this.extraFieldsLength,
54979 while (reader.index + 4 < end) {
54980 extraFieldId = reader.readInt(2);
54981 extraFieldLength = reader.readInt(2);
54982 extraFieldValue = reader.readData(extraFieldLength);
54990 reader.setIndex(end);