| Index: chrome/browser/resources/file_manager/js/metadata/byte_reader.js
|
| ===================================================================
|
| --- chrome/browser/resources/file_manager/js/metadata/byte_reader.js (revision 182404)
|
| +++ chrome/browser/resources/file_manager/js/metadata/byte_reader.js (working copy)
|
| @@ -49,10 +49,6 @@
|
| * Throw an error if (0 > pos >= end) or if (pos + size > end).
|
| *
|
| * Static utility function.
|
| - *
|
| - * @param {number} pos //TODO(JSDOC).
|
| - * @param {number} size //TODO(JSDOC).
|
| - * @param {number} end //TODO(JSDOC).
|
| */
|
| ByteReader.validateRead = function(pos, size, end) {
|
| if (pos < 0 || pos >= end)
|
| @@ -67,11 +63,6 @@
|
| *
|
| * This is a static utility function. There is a member function with the
|
| * same name which side-effects the current read position.
|
| - *
|
| - * @param {DataView} dataView //TODO(JSDOC).
|
| - * @param {number} pos //TODO(JSDOC).
|
| - * @param {number} size //TODO(JSDOC).
|
| - * @param {number=} opt_end //TODO(JSDOC).
|
| * @return {string} //TODO(JSDOC).
|
| */
|
| ByteReader.readString = function(dataView, pos, size, opt_end) {
|
| @@ -90,11 +81,6 @@
|
| *
|
| * This is a static utility function. There is a member function with the
|
| * same name which side-effects the current read position.
|
| - *
|
| - * @param {DataView} dataView //TODO(JSDOC).
|
| - * @param {number} pos //TODO(JSDOC).
|
| - * @param {number} size //TODO(JSDOC).
|
| - * @param {number=} opt_end //TODO(JSDOC).
|
| * @return {string} //TODO(JSDOC).
|
| */
|
| ByteReader.readNullTerminatedString = function(dataView, pos, size, opt_end) {
|
| @@ -116,12 +102,6 @@
|
| *
|
| * This is a static utility function. There is a member function with the
|
| * same name which side-effects the current read position.
|
| - *
|
| - * @param {DataView} dataView //TODO(JSDOC).
|
| - * @param {number} pos //TODO(JSDOC).
|
| - * @param {boolean} bom //TODO(JSDOC).
|
| - * @param {number} size //TODO(JSDOC).
|
| - * @param {number=} opt_end //TODO(JSDOC).
|
| * @return {string} //TODO(JSDOC).
|
| */
|
| ByteReader.readNullTerminatedStringUTF16 = function(
|
| @@ -162,11 +142,6 @@
|
| *
|
| * This is a static utility function. There is a member function with the
|
| * same name which side-effects the current read position.
|
| - *
|
| - * @param {DataView} dataView //TODO(JSDOC).
|
| - * @param {number} pos //TODO(JSDOC).
|
| - * @param {number} size //TODO(JSDOC).
|
| - * @param {number=} opt_end //TODO(JSDOC).
|
| * @return {string} //TODO(JSDOC).
|
| */
|
| ByteReader.readBase64 = function(dataView, pos, size, opt_end) {
|
| @@ -212,11 +187,6 @@
|
| *
|
| * This is a static utility function. There is a member function with the
|
| * same name which side-effects the current read position.
|
| - *
|
| - * @param {DataView} dataView //TODO(JSDOC).
|
| - * @param {number} pos //TODO(JSDOC).
|
| - * @param {number} size //TODO(JSDOC).
|
| - * @param {number=} opt_end //TODO(JSDOC).
|
| * @return {string} //TODO(JSDOC).
|
| */
|
| ByteReader.readImage = function(dataView, pos, size, opt_end) {
|
| @@ -243,8 +213,6 @@
|
|
|
| /**
|
| * Return true if the requested number of bytes can be read from the buffer.
|
| - *
|
| - * @param {number} size //TODO(JSDOC).
|
| * @return {boolean} //TODO(JSDOC).
|
| */
|
| ByteReader.prototype.canRead = function(size) {
|
| @@ -277,7 +245,6 @@
|
|
|
| /**
|
| * Set the expected byte ordering for future reads.
|
| - * @param {number} order //TODO(JSDOC).
|
| */
|
| ByteReader.prototype.setByteOrder = function(order) {
|
| this.littleEndian_ = order == ByteReader.LITTLE_ENDIAN;
|
| @@ -289,9 +256,6 @@
|
| *
|
| * You may optionally pass opt_end to override what is considered to be the
|
| * end of the buffer.
|
| - *
|
| - * @param {number} size //TODO(JSDOC).
|
| - * @param {number=} opt_end //TODO(JSDOC).
|
| */
|
| ByteReader.prototype.validateRead = function(size, opt_end) {
|
| if (typeof opt_end == 'undefined')
|
| @@ -342,9 +306,6 @@
|
| *
|
| * Adjusts the current position on success. Throws an exception if the
|
| * read would go past the end of the buffer.
|
| - *
|
| - * @param {number} size //TODO(JSDOC).
|
| - * @param {number=} opt_end //TODO(JSDOC).
|
| * @return {string} //TODO(JSDOC).
|
| */
|
| ByteReader.prototype.readString = function(size, opt_end) {
|
| @@ -359,9 +320,6 @@
|
| *
|
| * Adjusts the current position on success. Throws an exception if the
|
| * read would go past the end of the buffer.
|
| - *
|
| - * @param {number} size //TODO(JSDOC).
|
| - * @param {number=} opt_end //TODO(JSDOC).
|
| * @return {string} //TODO(JSDOC).
|
| */
|
| ByteReader.prototype.readNullTerminatedString = function(size, opt_end) {
|
| @@ -386,10 +344,6 @@
|
| *
|
| * Adjusts the current position on success. Throws an exception if the
|
| * read would go past the end of the buffer.
|
| - *
|
| - * @param {boolean} bom //TODO(JSDOC).
|
| - * @param {number} size //TODO(JSDOC).
|
| - * @param {number=} opt_end //TODO(JSDOC).
|
| * @return {string} //TODO(JSDOC).
|
| */
|
| ByteReader.prototype.readNullTerminatedStringUTF16 =
|
| @@ -419,10 +373,6 @@
|
| *
|
| * Adjusts the current position on success. Throws an exception if the
|
| * read would go past the end of the buffer.
|
| - *
|
| - * @param {number} size //TODO(JSDOC).
|
| - * @param {number=} opt_end //TODO(JSDOC).
|
| - * @param {function(new:Array.<*>)=} opt_arrayConstructor //TODO(JSDOC).
|
| * @return {Array.<*>} //TODO(JSDOC).
|
| */
|
| ByteReader.prototype.readSlice = function(size, opt_end,
|
| @@ -443,9 +393,6 @@
|
| *
|
| * Adjusts the current position on success. Throws an exception if the
|
| * read would go past the end of the buffer.
|
| - *
|
| - * @param {number} size //TODO(JSDOC).
|
| - * @param {number=} opt_end //TODO(JSDOC).
|
| * @return {string} //TODO(JSDOC).
|
| */
|
| ByteReader.prototype.readBase64 = function(size, opt_end) {
|
| @@ -459,9 +406,6 @@
|
| *
|
| * Adjusts the current position on success. Throws an exception if the
|
| * read would go past the end of the buffer.
|
| - *
|
| - * @param {number} size //TODO(JSDOC).
|
| - * @param {number=} opt_end //TODO(JSDOC).
|
| * @return {string} //TODO(JSDOC).
|
| */
|
| ByteReader.prototype.readImage = function(size, opt_end) {
|
| @@ -472,10 +416,6 @@
|
|
|
| /**
|
| * Seek to a give position relative to opt_seekStart.
|
| - *
|
| - * @param {number} pos //TODO(JSDOC).
|
| - * @param {number=} opt_seekStart //TODO(JSDOC).
|
| - * @param {number=} opt_end //TODO(JSDOC).
|
| */
|
| ByteReader.prototype.seek = function(pos, opt_seekStart, opt_end) {
|
| opt_end = opt_end || this.view_.byteLength;
|
| @@ -500,9 +440,6 @@
|
| * position.
|
| *
|
| * Recover the current position with a call to seekPop.
|
| - *
|
| - * @param {number} pos //TODO(JSDOC).
|
| - * @param {number=} opt_seekStart //TODO(JSDOC).
|
| */
|
| ByteReader.prototype.pushSeek = function(pos, opt_seekStart) {
|
| var oldPos = this.pos_;
|
|
|