MCPcopy Create free account

hub / github.com/dop251/goja_nodejs / functions

Functions467 in github.com/dop251/goja_nodejs

FunctionTestURLSearchParams
(t *testing.T)
url/urlsearchparams_test.go:20
FunctionTestUtil_Format
(t *testing.T)
util/module_test.go:11
FunctionTestUtil_Format_LessArgs
(t *testing.T)
util/module_test.go:35
FunctionTestUtil_Format_MoreArgs
(t *testing.T)
util/module_test.go:47
FunctionTestUtil_Format_NoArgs
(t *testing.T)
util/module_test.go:23
FunctionTestWrapBytes
(t *testing.T)
buffer/buffer_test.go:126
MethodWarn
Warn prints s to the stderr.
console/std_printer.go:31
MethodWarn
(string)
console/module.go:19
FunctionWithPathResolver
WithPathResolver sets a function which will be used to resolve paths (see PathResolver). If not specified, the DefaultPathResolver is used.
require/module.go:88
FunctionWithRegistry
(registry *require.Registry)
eventloop/eventloop.go:100
Method[Symbol.iterator]
()
url/types/url.d.ts:359
Method[Symbol.iterator]
()
global-types/globals.d.ts:6
Function_deepStrictEqual
(actual, expected)
assert.js:86
Function_isNumber
(val)
assert.js:12
Function_isSameValue
(a, b)
assert.js:4
Function_numberEquals
(a, b, precision = 1e-6)
assert.js:32
Function_sameErrorCode
(expected)
assert.js:197
Function_sameErrorMessage
(expected)
assert.js:203
Function_sameErrorType
(expected)
assert.js:191
Function_throws
(f, checks, message)
assert.js:174
Function_toString
(value)
assert.js:16
Methodalloc
(call goja.FunctionCall)
buffer/buffer.go:361
Methodalloc
* Allocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the`Buffer` will be zero-filled. * * ```js
buffer/types/buffer.buffer.d.ts:242
FunctionassertBufferWriteRead
(buffer, writeMethod, readMethod, value, offset = 0)
buffer/testdata/assertions.js:16
MethodbyteLength
* Returns the byte length of a string when encoded using `encoding`. * This is not the same as [`String.prototype.length`](https://develo
buffer/types/buffer.d.ts:104
MethodclearImmediate
(i *Immediate)
eventloop/eventloop.go:482
Methodcompare
* Compares `buf1` to `buf2`, typically for the purpose of sorting arrays of `Buffer` instances. This is equivalent to calling `buf1.compare(buf2)`.
buffer/types/buffer.d.ts:126
Methodconcat
(call goja.FunctionCall)
buffer/buffer.go:422
Methodconcat
* Returns a new `Buffer` which is the result of concatenating all the `Buffer` instances in the `list` together. * * If the
buffer/types/buffer.buffer.d.ts:195
Methodctor
(call goja.ConstructorCall)
buffer/buffer.go:139
FunctiondeepStrictEqual
(actual, expected, message)
assert.js:144
MethoddoCancel
()
eventloop/eventloop.go:489
Methodequals
* Returns `true` if both `buf` and `otherBuffer` have exactly the same bytes,`false` otherwise. Equivalent to `buf.compare(otherBuffer) === 0`.
buffer/types/buffer.d.ts:263
Functionerror_toString
(call goja.FunctionCall, r *goja.Runtime)
errors/errors.go:17
Methodfrom
(call goja.FunctionCall)
buffer/buffer.go:329
Functioninit
()
console/module.go:70
Functioninit
()
buffer/buffer.go:1245
Functioninit
()
url/module.go:34
Functioninit
()
process/module.go:35
Functioninit
()
util/module.go:102
MethodisBuffer
* Returns `true` if `obj` is a `Buffer`, `false` otherwise. * * ```js * import { Buffer } from 'node:buffer';
buffer/types/buffer.d.ts:49
MethodisEncoding
* Returns `true` if `encoding` is the name of a supported character encoding, * or `false` otherwise. * * ```js
buffer/types/buffer.d.ts:73
Methodjs_format
(call goja.FunctionCall)
util/module.go:71
FunctionnotDeepStrictEqual
(actual, expected, message)
assert.js:159
FunctionnotSameValue
(actual, unexpected, message)
assert.js:72
Methodproto_equals
(call goja.FunctionCall)
buffer/buffer.go:474
Methodproto_toString
(call goja.FunctionCall)
buffer/buffer.go:396
MethodreadBigInt64BE
readBigInt64BE reads a big-endian 64-bit signed integer from the buffer
buffer/buffer.go:481
MethodreadBigInt64BE
* Reads a signed, big-endian 64-bit integer from `buf` at the specified `offset`. * * Integers read from a `Buffer` are inte
buffer/types/buffer.d.ts:513
MethodreadBigInt64LE
readBigInt64LE reads a little-endian 64-bit signed integer from the buffer
buffer/buffer.go:490
MethodreadBigInt64LE
* Reads a signed, little-endian 64-bit integer from `buf` at the specified`offset`. * * Integers read from a `Buffer` are in
buffer/types/buffer.d.ts:523
MethodreadBigUInt64BE
readBigUInt64BE reads a big-endian 64-bit unsigned integer from the buffer
buffer/buffer.go:499
MethodreadBigUInt64BE
* Reads an unsigned, big-endian 64-bit integer from `buf` at the specified`offset`. * * This function is also available unde
buffer/types/buffer.d.ts:473
MethodreadBigUInt64LE
readBigUInt64LE reads a little-endian 64-bit unsigned integer from the buffer
buffer/buffer.go:508
MethodreadBigUInt64LE
* Reads an unsigned, little-endian 64-bit integer from `buf` at the specified`offset`. * * This function is also available u
buffer/types/buffer.d.ts:497
MethodreadBigUint64BE
* @alias Buffer.readBigUInt64BE * @since v14.10.0, v12.19.0
buffer/types/buffer.d.ts:479
MethodreadBigUint64LE
* @alias Buffer.readBigUInt64LE * @since v14.10.0, v12.19.0
buffer/types/buffer.d.ts:503
MethodreadDoubleBE
readDoubleBE reads a big-endian 64-bit floating-point number from the buffer
buffer/buffer.go:517
MethodreadDoubleBE
* Reads a 64-bit, big-endian double from `buf` at the specified `offset`. * * ```js * import { Buffer } from 'n
buffer/types/buffer.d.ts:915
MethodreadDoubleLE
readDoubleLE reads a little-endian 64-bit floating-point number from the buffer
buffer/buffer.go:526
MethodreadDoubleLE
* Reads a 64-bit, little-endian double from `buf` at the specified `offset`. * * ```js * import { Buffer } from
buffer/types/buffer.d.ts:899
MethodreadFloatBE
readFloatBE reads a big-endian 32-bit floating-point number from the buffer
buffer/buffer.go:535
MethodreadFloatBE
* Reads a 32-bit, big-endian float from `buf` at the specified `offset`. * * ```js * import { Buffer } from 'no
buffer/types/buffer.d.ts:881
MethodreadFloatLE
readFloatLE reads a little-endian 32-bit floating-point number from the buffer
buffer/buffer.go:544
MethodreadFloatLE
* Reads a 32-bit, little-endian float from `buf` at the specified `offset`. * * ```js * import { Buffer } from
buffer/types/buffer.d.ts:865
MethodreadInt16BE
readInt16BE reads a big-endian 16-bit signed integer from the buffer
buffer/buffer.go:562
MethodreadInt16BE
* Reads a signed, big-endian 16-bit integer from `buf` at the specified `offset`. * * Integers read from a `Buffer` are inte
buffer/types/buffer.d.ts:809
MethodreadInt16LE
readInt16LE reads a little-endian 16-bit signed integer from the buffer
buffer/buffer.go:571
MethodreadInt16LE
* Reads a signed, little-endian 16-bit integer from `buf` at the specified`offset`. * * Integers read from a `Buffer` are in
buffer/types/buffer.d.ts:791
MethodreadInt32BE
readInt32BE reads a big-endian 32-bit signed integer from the buffer
buffer/buffer.go:580
MethodreadInt32BE
* Reads a signed, big-endian 32-bit integer from `buf` at the specified `offset`. * * Integers read from a `Buffer` are inte
buffer/types/buffer.d.ts:847
MethodreadInt32LE
readInt32LE reads a little-endian 32-bit signed integer from the buffer
buffer/buffer.go:589
MethodreadInt32LE
* Reads a signed, little-endian 32-bit integer from `buf` at the specified`offset`. * * Integers read from a `Buffer` are in
buffer/types/buffer.d.ts:829
MethodreadInt8
readInt8 reads an 8-bit signed integer from the buffer
buffer/buffer.go:553
MethodreadInt8
* Reads a signed 8-bit integer from `buf` at the specified `offset`. * * Integers read from a `Buffer` are interpreted as tw
buffer/types/buffer.d.ts:771
MethodreadIntBE
readIntBE reads a big-endian signed integer of variable byte length
buffer/buffer.go:598
MethodreadIntBE
* Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as a big-endian, two's complement signed value
buffer/types/buffer.d.ts:617
MethodreadIntLE
readIntLE reads a little-endian signed integer of variable byte length
buffer/buffer.go:613
MethodreadIntLE
* Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as a little-endian, two's complement signed value
buffer/types/buffer.d.ts:595
MethodreadUInt16BE
readUInt16BE reads a big-endian 16-bit unsigned integer from the buffer
buffer/buffer.go:637
MethodreadUInt16BE
* Reads an unsigned, big-endian 16-bit integer from `buf` at the specified`offset`. * * This function is also available unde
buffer/types/buffer.d.ts:693
MethodreadUInt16LE
readUInt16LE reads a little-endian 16-bit unsigned integer from the buffer
buffer/buffer.go:646
MethodreadUInt16LE
* Reads an unsigned, little-endian 16-bit integer from `buf` at the specified `offset`. * * This function is also available
buffer/types/buffer.d.ts:667
MethodreadUInt32BE
readUInt32BE reads a big-endian 32-bit unsigned integer from the buffer
buffer/buffer.go:655
MethodreadUInt32BE
* Reads an unsigned, big-endian 32-bit integer from `buf` at the specified`offset`. * * This function is also available unde
buffer/types/buffer.d.ts:743
MethodreadUInt32LE
readUInt32LE reads a little-endian 32-bit unsigned integer from the buffer
buffer/buffer.go:664
MethodreadUInt32LE
* Reads an unsigned, little-endian 32-bit integer from `buf` at the specified`offset`. * * This function is also available u
buffer/types/buffer.d.ts:719
MethodreadUInt8
readUInt8 reads an 8-bit unsigned integer from the buffer
buffer/buffer.go:628
MethodreadUInt8
* Reads an unsigned 8-bit integer from `buf` at the specified `offset`. * * This function is also available under the `readU
buffer/types/buffer.d.ts:639
MethodreadUIntBE
readUIntBE reads a big-endian unsigned integer of variable byte length
buffer/buffer.go:673
MethodreadUIntBE
* Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as an unsigned big-endian integer supporting
buffer/types/buffer.d.ts:571
MethodreadUIntLE
readUIntLE reads a little-endian unsigned integer of variable byte length
buffer/buffer.go:686
MethodreadUIntLE
* Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as an unsigned, little-endian integer supporting
buffer/types/buffer.d.ts:543
MethodreadUint16BE
* @alias Buffer.readUInt16BE * @since v14.9.0, v12.19.0
buffer/types/buffer.d.ts:699
MethodreadUint16LE
* @alias Buffer.readUInt16LE * @since v14.9.0, v12.19.0
buffer/types/buffer.d.ts:673
MethodreadUint32BE
* @alias Buffer.readUInt32BE * @since v14.9.0, v12.19.0
buffer/types/buffer.d.ts:749
MethodreadUint32LE
* @alias Buffer.readUInt32LE * @since v14.9.0, v12.19.0
buffer/types/buffer.d.ts:725
MethodreadUint8
* @alias Buffer.readUInt8 * @since v14.9.0, v12.19.0
buffer/types/buffer.d.ts:645
MethodreadUintBE
* @alias Buffer.readUIntBE * @since v14.9.0, v12.19.0
buffer/types/buffer.d.ts:577
MethodreadUintLE
* @alias Buffer.readUIntLE * @since v14.9.0, v12.19.0
buffer/types/buffer.d.ts:549
← previousnext →301–400 of 467, ranked by callers