Web Development
Node.js
Subjective
Aug 16, 2025
What is the purpose of Buffer in Node.js?
Detailed Explanation
Buffer handles binary data before Uint8Array was available. Used for: file operations, network protocols, cryptography. Methods: Buffer.from(), Buffer.alloc(), toString(). Now Uint8Array is preferred for new code.
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts