code: function buffer2StringValue(buffer) {
      var length = buffer.length;
      var output = '0x';
      for (var i = length; i > 0; i--) {
          output += buffer.slice(i - 1, i).toString('hex');
      }
      return output;
  }
docs: Convert a buffer value to string