amfUtils.js
function amf0encSArray(a) {
    console.log('Do strict array!');
    var buf = new Buffer(5);
    buf.writeUInt8(0x0A,0);
    buf.writeUInt32BE(a.length,1);
    var i;
    for (i=0;i< a.length;i++) {
        buf = Buffer.concat([buf,amf0EncodeOne(a[i])]);
    }
    return buf;
}
function amf0encSArray(a) {
    console.log('Do strict array!');
    var buf = new Buffer(5);
    buf.writeUInt8(0x0A,0);
    buf.writeUInt32BE(a.length,1);
    var i;
    for (i=0;i< a.length;i++) {
        buf = Buffer.concat([buf,amf0EncodeOne(a[i])]);
    }
    return buf;
}
function amf0encSArray ( a ) { console . log ( 'Do strict array!' ) ; var buf = new Buffer ( 5 ) ; buf . writeUInt8 ( 0x0A , 0 ) ; buf . writeUInt32BE ( a . length , 1 ) ; var i ; for ( i = 0 ; i < a . length ; i ++ ) { buf = Buffer . concat ( [ buf , amf0EncodeOne ( a [ i ] ) ] ) ; } return buf ; }
AMF0 Encode Strict Array
@param a Array
AMF0 Encode Strict Array