You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The buffer to be resized; may or may not be allocated yet
Buf#isBinary SyncExperimental
varresult=buf.isBinary();
Returns
Number
1 if buffer looks like non-text data
Buf#set AsyncExperimental
buf.set(data,datalen).then(function(buf){// Use buf});
| Parameters | Type |
| --- | --- | --- |
| data | Buffer | The data to copy into the buffer |
| datalen | Number | The length of the data to copy into the buffer |