index.js
function continue_from_buffer(data) {

    var durations = continue_durations_from_hex_buffer(data);

    var on = durations[0];
    var off = durations[1];
    var stop = durations[2];

    return (8900 < on && on < 9200) &&
        (-2350 < off && off < -2100) &&
        (500 < stop && stop < 650);
}
function continue_from_buffer(data) {

    var durations = continue_durations_from_hex_buffer(data);

    var on = durations[0];
    var off = durations[1];
    var stop = durations[2];

    return (8900 < on && on < 9200) &&
        (-2350 < off && off < -2100) &&
        (500 < stop && stop < 650);
}
function continue_from_buffer ( data ) { var durations = continue_durations_from_hex_buffer ( data ) ; var on = durations [ 0 ] ; var off = durations [ 1 ] ; var stop = durations [ 2 ] ; return ( 8900 < on && on < 9200 ) && ( - 2350 < off && off < - 2100 ) && ( 500 < stop && stop < 650 ) ; }
determine whether or not the buffer is a valid continuation code
determine whether or not the buffer is a valid continuation code