string_bytes: ucs2 support big endian
authorAndrew Low <Andrew_Low@ca.ibm.com>
Tue, 8 Apr 2014 14:39:33 +0000 (10:39 -0400)
committerTimothy J Fontaine <tjfontaine@gmail.com>
Wed, 21 May 2014 20:16:00 +0000 (13:16 -0700)
commit929e2ed5ba29693892ab134a86b218ea72a33e44
treef61bfd5b67fe4e48377b4d8441aac6f4162d05b2
parent765b03255c65f0ebfd9896c5225a3402d837098a
string_bytes: ucs2 support big endian

64bit constants are keyed for x64 platforms only, add PowerPC based
platform constants.

Node's "ucs2" encoding wants LE character data stored in the Buffer, so
we need to reorder on BE platforms.  See
http://nodejs.org/api/buffer.html regarding Node's "ucs2" encoding
specification

Signed-off-by: Timothy J Fontaine <tjfontaine@gmail.com>
src/string_bytes.cc