buffer: align fast buffers on 8 byte boundary
authorBen Noordhuis <info@bnoordhuis.nl>
Wed, 28 Mar 2012 23:31:12 +0000 (01:31 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Wed, 28 Mar 2012 23:31:31 +0000 (01:31 +0200)
commit285d8c658914d43cb39bacbde1ae62d8f6be25cf
tree8f4d713eeec3af00c3b9ca613269f03841a4e9bc
parent67fc1dafd0010f4c0a23db2aa472d0dc2a8f3492
buffer: align fast buffers on 8 byte boundary

Prevents alignment issues when people create a typed array from a buffer.
Unaligned loads or stores are less efficent and (on some architectures) unsafe.
lib/buffer.js