VOOZH about

URL: https://www.geeksforgeeks.org/node-js/node-js-buffer-buffer-property/

⇱ Node.js Buffer.buffer Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Node.js Buffer.buffer Property

Last Updated : 7 Aug, 2020

The Buffer.buffer property is an inbuilt application programming interface of class Buffer within buffer module which is used to get the object of array buffer equivalent to this buffer object.

Syntax:

const buf.buffer

Return Value: This property returns the object of array buffer.

Example 1: Filename: index.js

Output:

Big Integer :- [object ArrayBuffer]

Example 2: Filename: index.js

Output:

both buffer is equivalent

Run the index.js file using the following command:

node index.js
Reference: https://nodejs.org/api/buffer.html#buffer_buf_buffer
Comment

Explore