amfUtils.js
function amf3decInteger(buf) { // Invert the integer
    var resp = amf3decUI29(buf);
    if (resp.value > 0x0FFFFFFF) resp.value = (resp.value & 0x0FFFFFFF) - 0x10000000;
    return resp;
}
function amf3decInteger(buf) { // Invert the integer
    var resp = amf3decUI29(buf);
    if (resp.value > 0x0FFFFFFF) resp.value = (resp.value & 0x0FFFFFFF) - 0x10000000;
    return resp;
}
function amf3decInteger ( buf ) { // Invert the integer var resp = amf3decUI29 ( buf ) ; if ( resp . value > 0x0FFFFFFF ) resp . value = ( resp . value & 0x0FFFFFFF ) - 0x10000000 ; return resp ; }
AMF3 Decode an integer
@param buf
@returns {{len: number, value: number}}
AMF3 Decode an integer