amfUtils.js
function amf3decArray(buf) {
    var count = amf3decUI29(buf.slice(1));
    var obj = amf3decObject(buf.slice(count.len));
    if (count.value % 2 == 1) throw new Error("This is a reference to another array, which currently we don't support!");
    return { len: count.len + obj.len, value: obj.value }
}
function amf3decArray(buf) {
    var count = amf3decUI29(buf.slice(1));
    var obj = amf3decObject(buf.slice(count.len));
    if (count.value % 2 == 1) throw new Error("This is a reference to another array, which currently we don't support!");
    return { len: count.len + obj.len, value: obj.value }
}
function amf3decArray ( buf ) { var count = amf3decUI29 ( buf . slice ( 1 ) ) ; var obj = amf3decObject ( buf . slice ( count . len ) ) ; if ( count . value % 2 == 1 ) throw new Error ( "This is a reference to another array, which currently we don't support!" ) ; return { len : count . len + obj . len , value : obj . value } }
AMF3 Decode Array
@param buf
@returns {{len: *, value: *}}
AMF3 Decode Array