code: function reverse(param) {
      var ret = new buffer.Buffer(param.length);
      for (var i = 0; i < param.length; i++) {
        ret[i] = param[param.length - i - 1];
      }
      return ret;
    }
docs: Reverse a buffer
  @param {Buffer} param
  @return {Buffer}