Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(590)

Side by Side Diff: chrome/browser/resources/file_manager/js/metadata/byte_reader.js

Issue 9583009: [File Manager] Cleanup: Moving js/css/html files to dedicated directories (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 2011->2012 Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 ByteReader = function(arrayBuffer, opt_offset, opt_length) { 5 ByteReader = function(arrayBuffer, opt_offset, opt_length) {
6 opt_offset = opt_offset || 0; 6 opt_offset = opt_offset || 0;
7 opt_length = opt_length || (arrayBuffer.byteLength - opt_offset); 7 opt_length = opt_length || (arrayBuffer.byteLength - opt_offset);
8 this.view_ = new DataView(arrayBuffer, opt_offset, opt_length); 8 this.view_ = new DataView(arrayBuffer, opt_offset, opt_length);
9 this.pos_ = 0; 9 this.pos_ = 0;
10 this.seekStack_ = []; 10 this.seekStack_ = [];
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 ByteReader.prototype.popSeek = function() { 403 ByteReader.prototype.popSeek = function() {
404 this.seek(this.seekStack_.pop()); 404 this.seek(this.seekStack_.pop());
405 }; 405 };
406 406
407 /** 407 /**
408 * Return the current read position. 408 * Return the current read position.
409 */ 409 */
410 ByteReader.prototype.tell = function() { 410 ByteReader.prototype.tell = function() {
411 return this.pos_; 411 return this.pos_;
412 }; 412 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698