For example, when you read from a file with fs.readFile(), the data returned to the callback or Promise is a buffer object. You may have used buffers implicitly if you wrote Node.js code already. Unlike arrays, you cannot change the size of a buffer once it is created. Buffers store a sequence of integers, similar to an array in JavaScript. In Node.js, we can access these spaces of memory with the built-in Buffer class. IntroductionĪ buffer is a space in memory (typically RAM) that stores binary data. The author selected the COVID-19 Relief Fund to receive a donation as part of the Write for DOnations program.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |