amfUtils.js
function amf0encBool(num) {
    var buf = new Buffer(2);
    buf.writeUInt8(0x01, 0);
    buf.writeUInt8((num ? 1 : 0), 1);
    return buf;
}
function amf0encBool(num) {
    var buf = new Buffer(2);
    buf.writeUInt8(0x01, 0);
    buf.writeUInt8((num ? 1 : 0), 1);
    return buf;
}
function amf0encBool ( num ) { var buf = new Buffer ( 2 ) ; buf . writeUInt8 ( 0x01 , 0 ) ; buf . writeUInt8 ( ( num ? 1 : 0 ) , 1 ) ; return buf ; }
AMF0 Encode Boolean
@param num
@returns {Buffer}
AMF0 Encode Boolean