amfUtils.js
function amf0decSArray(buf) {
    var a = [];
    var len = 5;
    var ret;
    for (var count = buf.readUInt32BE(1); count; count--) {
        ret = amf0DecodeOne(buf.slice(len));
        a.push(ret.value);
        len += ret.len;
    }
    return { len: len, value: amf0markSArray(a) }
}
function amf0decSArray(buf) {
    var a = [];
    var len = 5;
    var ret;
    for (var count = buf.readUInt32BE(1); count; count--) {
        ret = amf0DecodeOne(buf.slice(len));
        a.push(ret.value);
        len += ret.len;
    }
    return { len: len, value: amf0markSArray(a) }
}
function amf0decSArray ( buf ) { var a = [ ] ; var len = 5 ; var ret ; for ( var count = buf . readUInt32BE ( 1 ) ; count ; count -- ) { ret = amf0DecodeOne ( buf . slice ( len ) ) ; a . push ( ret . value ) ; len += ret . len ; } return { len : len , value : amf0markSArray ( a ) } }
AMF0 Decode Strict Array
@param buf
@returns {{len: number, value: Array}}
AMF0 Decode Strict Array