Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
fix wrong merge
Commit Description:
fix wrong merge
import r from 'restructure' ;
export default class CFFPointer extends r . Pointer {
constructor ( type , options = {}) {
if ( options . type == null ) {
options . type = 'global' ;
}
super ( null , type , options );
}
decode ( stream , parent , operands ) {
this . offsetType = {
decode : () => operands [ 0 ]
};
return super . decode ( stream , parent , operands );
}
encode ( stream , value , ctx ) {
if ( ! stream ) {
// compute the size (so ctx.pointerSize is correct)
this . offsetType = {
size : () => 0
};
this . size ( value , ctx );
return [ new Ptr ( 0 )];
}
let ptr = null ;
this . offsetType = {
encode : ( stream , val ) => ptr = val
};
super . encode ( stream , value , ctx );
return [ new Ptr ( ptr )];
}
}
class Ptr {
constructor ( val ) {
this . val = val ;
this . forceLarge = true ;
}
valueOf () {
return this . val ;
}
}
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