mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
meta: enable jsdoc/check-tag-names rule
PR-URL: https://github.com/nodejs/node/pull/58521 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
parent
036b1fd66d
commit
0fd1ecded6
86 changed files with 495 additions and 247 deletions
|
@ -266,6 +266,7 @@ function _copyActual(source, target, targetStart, sourceStart, sourceEnd) {
|
|||
* runtime deprecation would introduce too much breakage at this time. It's not
|
||||
* likely that the Buffer constructors would ever actually be removed.
|
||||
* Deprecation Code: DEP0005
|
||||
* @returns {Buffer}
|
||||
*/
|
||||
function Buffer(arg, encodingOrOffset, length) {
|
||||
showFlaggedDeprecation();
|
||||
|
@ -293,6 +294,10 @@ ObjectDefineProperty(Buffer, SymbolSpecies, {
|
|||
* Buffer.from(array)
|
||||
* Buffer.from(buffer)
|
||||
* Buffer.from(arrayBuffer[, byteOffset[, length]])
|
||||
* @param {any} value
|
||||
* @param {BufferEncoding|number} encodingOrOffset
|
||||
* @param {number} [length]
|
||||
* @returns {Buffer}
|
||||
*/
|
||||
Buffer.from = function from(value, encodingOrOffset, length) {
|
||||
if (typeof value === 'string')
|
||||
|
@ -389,6 +394,7 @@ ObjectSetPrototypeOf(Buffer, Uint8Array);
|
|||
/**
|
||||
* Creates a new filled Buffer instance.
|
||||
* alloc(size[, fill[, encoding]])
|
||||
* @returns {FastBuffer}
|
||||
*/
|
||||
Buffer.alloc = function alloc(size, fill, encoding) {
|
||||
validateNumber(size, 'size', 0, kMaxLength);
|
||||
|
@ -402,6 +408,7 @@ Buffer.alloc = function alloc(size, fill, encoding) {
|
|||
/**
|
||||
* Equivalent to Buffer(num), by default creates a non-zero-filled Buffer
|
||||
* instance. If `--zero-fill-buffers` is set, will zero-fill the buffer.
|
||||
* @returns {FastBuffer}
|
||||
*/
|
||||
Buffer.allocUnsafe = function allocUnsafe(size) {
|
||||
validateNumber(size, 'size', 0, kMaxLength);
|
||||
|
@ -412,6 +419,8 @@ Buffer.allocUnsafe = function allocUnsafe(size) {
|
|||
* By default creates a non-zero-filled Buffer instance that is not allocated
|
||||
* off the pre-initialized pool. If `--zero-fill-buffers` is set, will zero-fill
|
||||
* the buffer.
|
||||
* @param {number} size
|
||||
* @returns {FastBuffer|undefined}
|
||||
*/
|
||||
Buffer.allocUnsafeSlow = function allocUnsafeSlow(size) {
|
||||
validateNumber(size, 'size', 0, kMaxLength);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue