Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
merge
Commit Description:
merge
'use strict' ;
var ArrayReader = require ( './ArrayReader' );
var utils = require ( '../utils' );
function Uint8ArrayReader ( data ) {
ArrayReader . call ( this , data );
}
utils . inherits ( Uint8ArrayReader , ArrayReader );
/**
* @see DataReader.readData
*/
Uint8ArrayReader . prototype . readData = function ( size ) {
this . checkOffset ( size );
if ( size === 0 ) {
// in IE10, when using subarray(idx, idx), we get the array [0x00] instead of [].
return new Uint8Array ( 0 );
}
var result = this . data . subarray ( this . zero + this . index , this . zero + this . index + size );
this . index += size ;
return result ;
};
module . exports = Uint8ArrayReader ;
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings