src: redo unaligned access workaround
authorBen Noordhuis <info@bnoordhuis.nl>
Wed, 10 Dec 2014 16:33:56 +0000 (17:33 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Sun, 14 Dec 2014 15:01:47 +0000 (16:01 +0100)
commit56fde66c46653e5c0fbc6e8960d8a013af35f42b
treec73a2e4a7ddfea89b553c8af6746abe2c3623b0c
parenta60056df3cad2867d337fc1d7adeebe66f89031a
src: redo unaligned access workaround

Introduce two-byte overloads of node::Encode() and StringBytes::Encode()
that ensure that the input is suitably aligned.

Revisits commit 535fec8 from yesterday.
src/node.cc
src/node.h
src/node_buffer.cc
src/node_crypto.cc
src/string_bytes.cc
src/string_bytes.h