[nodejs] buf.readUInt16BE and buf.readUInt16LE difference

2012-09-23 Thread nodenewbie
Was looking at Buffer class in nodejs documentation - Does anyone know the difference between buf.readUInt16BE and buf.readUInt16LE? -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because yo

Re: [nodejs] buf.readUInt16BE and buf.readUInt16LE difference

2012-09-23 Thread Ben Noordhuis
On Mon, Sep 24, 2012 at 12:48 AM, nodenewbie wrote: > Was looking at Buffer class in nodejs documentation - > Does anyone know the difference between buf.readUInt16BE and > buf.readUInt16LE? One reads a little-endian short, the other a big-endian short. -- Job Board: http://jobs.nodejs.org/ Pos

Re: [nodejs] buf.readUInt16BE and buf.readUInt16LE difference

2012-09-23 Thread Yi Tan
FYI: http://en.wikipedia.org/wiki/Endianness Regards, ty 2012/9/24 Ben Noordhuis > On Mon, Sep 24, 2012 at 12:48 AM, nodenewbie wrote: > > Was looking at Buffer class in nodejs documentation - > > Does anyone know the difference between buf.readUInt16BE and > > buf.readUInt16LE? > > One rea