node/bser/index.js
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;
}
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;
}
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 ; }
Byteswap an arbitrary buffer, flipping from one endian to the other, returning a new buffer with the resultant data
Byteswap an arbitrary buffer flipping from one endian to the other returning a new buffer with the resultant data