I'm reading through "Professional Node.js" and I'm not sure what the point is of the buffers.Please correct me if I'm wrong, but from my understanding Buffers are sort of like a storage area or queue where "tasks" are placed that are going to be done.And it can store different types of data like base64 or binary data?I ran some example code:var utf8String = 'my string'; var buf = new Buffer(utf8String); var base64String = buf.toString('base64')console.log(base64String);'my string' is equal to: bXkgc3RyaW5nBut... so what? What kind of use does this have for me?
Submitted December 14, 2015 at 01:52AM by fastpenguin91
No comments:
Post a Comment