Lines Matching refs:fromBuffer
92 const reader = SmartBuffer.fromBuffer(login);
121 const buff = SmartBuffer.fromBuffer(new Buffer([1,2,3,4,5,6]));
130 const buff = SmartBuffer.fromBuffer(new Buffer([1,2,3,4,5,6]));
139 const buff = SmartBuffer.fromBuffer(new Buffer([1,2,3,4,5,6]));
154 const buff = SmartBuffer.fromBuffer(buffer); // Creates instance from buffer. (Uses default utf8 en…
155 const buff = SmartBuffer.fromBuffer(buffer, 'ascii'); // Creates instance from buffer with ascii en…
173 const buff = SmartBuffer.fromBuffer(Buffer.from('some string', 'utf8'));
212 ### Class Method: fromBuffer(buffer[, encoding])
219 const buff = SmartBuffer.fromBuffer(someBuffer); // Defaults to utf8
220 const buff = SmartBuffer.fromBuffer(someBuffer, 'ascii');
412 const buff = SmartBuffer.fromBuffer(Buffer.from('hello there', 'utf8'));
460 const buff = SmartBuffer.fromBuffer(Buffer.from('hello\0 there', 'utf8'));