Skip to content Skip to sidebar Skip to footer

Buffer Size In Nodejs

// node v0.5.6 // I assume the max buffer size that nodejs can allocate outside of the nodejs heap is limited by the amount of available system memory. I have several gigs of free

Solution 1:

The error message that you are getting is a bit misleading unfortunately, but you have a buffer overflow error.

Your loop will run until cur == bcast, so the very last writeUInt32LE will write a number past the length of the buffer. Change your loop comparison to "cur < bcast".

Post a Comment for "Buffer Size In Nodejs"