Lines Matching refs:target
208 function _copy(source, target, targetStart, sourceStart, sourceEnd) {
211 if (!isUint8Array(target))
212 throw new ERR_INVALID_ARG_TYPE('target', ['Buffer', 'Uint8Array'], target);
238 if (targetStart >= target.length || sourceStart >= sourceEnd)
241 return _copyActual(source, target, targetStart, sourceStart, sourceEnd);
244 function _copyActual(source, target, targetStart, sourceStart, sourceEnd) {
245 if (sourceEnd - sourceStart > target.length - targetStart)
246 sourceEnd = sourceStart + target.length - targetStart;
256 TypedArrayPrototypeSet(target, source, targetStart);
820 function copy(target, targetStart, sourceStart, sourceEnd) {
821 return _copy(this, target, targetStart, sourceStart, sourceEnd);
911 Buffer.prototype.compare = function compare(target,
916 if (!isUint8Array(target)) {
917 throw new ERR_INVALID_ARG_TYPE('target', ['Buffer', 'Uint8Array'], target);
920 return _compare(this, target);
928 targetEnd = target.length;
930 validateOffset(targetEnd, 'targetEnd', 0, target.length);
947 return compareOffset(this, target, targetStart, sourceStart, targetEnd,