Saturday 29 April 2017

(NodeJS) How Can I put UInt16 String directly to Buffer as writeUInt16BE?

As In Node JS buffer Like this, int 450 -> converts into 01C2 as below Image.

Buffer Input Example

I have some string with already Hex encoded String.

var a = "C2323DAD8D2D";

How Can I put this string into Buffer directly, as it looks like this?

[Buffer C2 32 3D AD 8D 2D]



via Daniel T. Lee

No comments:

Post a Comment