Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
fig bugs in login report
Commit Description:
fig bugs in login report
// Generated by CoffeeScript 1.7.1
( function () {
var Bitfield ;
Bitfield = ( function () {
function Bitfield ( type , flags ) {
this . type = type ;
this . flags = flags != null ? flags : [];
}
Bitfield . prototype . decode = function ( stream ) {
var flag , i , res , val , _i , _len , _ref ;
val = this . type . decode ( stream );
res = {};
_ref = this . flags ;
for ( i = _i = 0 , _len = _ref . length ; _i < _len ; i = ++ _i ) {
flag = _ref [ i ];
if ( flag != null ) {
res [ flag ] = !! ( val & ( 1 << i ));
}
}
return res ;
};
Bitfield . prototype . size = function () {
return this . type . size ();
};
Bitfield . prototype . encode = function ( stream , keys ) {
var flag , i , val , _i , _len , _ref ;
val = 0 ;
_ref = this . flags ;
for ( i = _i = 0 , _len = _ref . length ; _i < _len ; i = ++ _i ) {
flag = _ref [ i ];
if ( flag != null ) {
if ( keys [ flag ]) {
val |= 1 << i ;
}
}
}
return this . type . encode ( stream , val );
};
return Bitfield ;
})();
module . exports = Bitfield ;
}). call ( this );
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