hummie1.js
/**
     * Function is used to bute swap a buffer. First byte becomes the last one
     * @param {any} buffer
     */
Function is used to bute swap a buffer. First byte becomes the last one
@param {any} buffer
Function is used to bute swap a buffer . First byte becomes the last one @param { any } buffer
function reverseBuffer(buffer) {
        let t = Buffer.alloc(buffer.length)
        for (let i = 0, j = buffer.length - 1; i <= j; ++i, --j) {
            t[i] = buffer[j];
            t[j] = buffer[i];
        }
        return t;
    }
function reverseBuffer ( buffer ) { let t = Buffer . alloc ( buffer . length ) for ( let i = 0 , j = buffer . length - 1 ; i <= j ; ++ i , -- j ) { t [ i ] = buffer [ j ] ; t [ j ] = buffer [ i ] ; } return t ; }
Function is used to bute swap a buffer.
Function is used to bute swap a buffer .