the read methods are looking at the same memory. they just index into a v8 array that is wrapped around the raw memory buffer for convenience and speed of access. having said that, there are a lot of asserts and checks in the read* methods so i'd imagine they introduce quite a lot of overhead. as for using less memory, i don't see how using the read* methods will make any difference to memory usage.
On Tuesday, May 15, 2012 11:35:59 PM UTC+1, Ryan Cole wrote: > > Yea, I meant the buf.readUInt32BE and friends. > > Thanks, > Ryan > -- 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
