Node.js Buffer.poolSize Property
The Buffer.poolSize property is an inbuilt application programming interface of class Buffer with in Buffer module that gives the size (in bytes) of pre-allocated internal Buffer instances used for pooling. This value may be modified.
Syntax:
Buffer.poolSize = value
Return Value: It returns the size of the internal Buffer instances used for pooling.
Example 1:
Buffer.poolSize = 1024;
console.log(Buffer.poolSize);
|
Output:
1024
Example 2:
console.log(Buffer.poolSize);
|
Output:
8192
Reference:https://nodejs.org/api/buffer.html#buffer_class_property_buffer_poolsize
Last Updated :
13 Oct, 2021
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...