code: function byteswap64(buf) {
    var swap = new Buffer(buf.length);
    for (var i = 0; i < buf.length; i++) {
      swap[i] = buf[buf.length -1 - i];
    }
    return swap;
  }
docs: Byteswap an arbitrary buffer, flipping from one endian to the other, returning a new buffer with the resultant data