}
Buffer.isBuffer = function (b) {
- return (b != null && b._isBuffer) || false
+ return !!(b !== null && b !== undefined && b._isBuffer)
}
Buffer.byteLength = function (str, encoding) {
}
function _utf8Write (buf, string, offset, length) {
- var bytes, pos
return Buffer._charsWritten = blitBuffer(utf8ToBytes(string), buf, offset, length)
}
function _asciiWrite (buf, string, offset, length) {
- var bytes, pos
return Buffer._charsWritten = blitBuffer(asciiToBytes(string), buf, offset, length)
}
}
function _base64Write (buf, string, offset, length) {
- var bytes, pos
return Buffer._charsWritten = blitBuffer(base64ToBytes(string), buf, offset, length)
}