Thanks Ben and Shripad. writeInt16BE & writeInt8 functions worked for me.
Thanks a ton :) :)

On Fri, Sep 7, 2012 at 6:23 PM, Ben Noordhuis <[email protected]> wrote:

> On Fri, Sep 7, 2012 at 2:50 PM, Neha Jatav <[email protected]> wrote:
> > Hi Ben,
> >
> > Thanks for the quick response. I am getting the following error:
> >
> > buf.writeInt32(num, 0);
> >    ^
> > TypeError: Object  the e has no method 'writeInt32'
> >
> > -Neha
>
> Sorry, typo: use .writeInt32LE or .writeInt32BE to specify the
> endianness. Same for .writeInt16.
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to