Instructions for the buffer.length method in node.js
- 2020-05-05 10:52:58
- OfStack
method description:
This method returns the length of the buffer object.
syntax:
buffer.length
receive parameters:
No
example:
buf = new Buffer(1234);
console.log(buf.length);
buf.write("some string", 0, "ascii");
console.log(buf.length);
// 1234
// 1234