MCPcopy Create free account

hub / github.com/SalvatorePreviti/roaring-wasm / functions

Functions278 in github.com/SalvatorePreviti/roaring-wasm

↓ 99 callersMethodtoArray
* Converts the bitmap to a JS array. * The resulting array may be very big, use this function with caution. * * @returns The array containing
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:203
↓ 67 callersMethodfrom
( values: | ReadonlyRoaringBitmap32 | BasicTypedArray | Iterable<number | null | undefin
packages/roaring-wasm-src/RoaringBitmap32.ts:76
↓ 67 callersMethodhasRange
* Check whether a range of values from rangeStart (included) to rangeEnd (excluded) is present * * @param rangeStart - The start value (inclusiv
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:132
↓ 35 callersMethodhas
* Checks whether the given value is contained in the set. * * @param value - The value to look for. * @returns True if value exists in the se
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:166
↓ 29 callersMethoddeserialize
* Creates a new roaring bitmap deserializing it from a buffer * * The roaring bitmap allocates in WASM memory, remember to dispose * the Roar
packages/roaring-wasm-src/RoaringBitmap32.ts:182
↓ 27 callersMethodgetSerializationSizeInBytes
* How many bytes are required to serialize this bitmap. * * @param format - The serialization format.
packages/roaring-wasm-src/RoaringBitmap32.ts:327
↓ 26 callersMethodaddRange
* Adds all the values in the interval: [rangeStart, rangeEnd). * * First element is included, last element is excluded. * The number of added
packages/roaring-wasm-src/RoaringBitmap32.ts:726
↓ 25 callersMethodat
* The at() method takes an integer value and returns the item at that index, * allowing for positive and negative integers. Negative integers count
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:372
↓ 25 callersMethodfromRange
* Creates a new bitmap that contains all the values in the interval: [rangeStart, rangeEnd). * Is possible to specify the step parameter to have a
packages/roaring-wasm-src/RoaringBitmap32.ts:110
↓ 25 callersMethodnext
()
packages/roaring-wasm-src/RoaringBitmap32Iterator.ts:62
↓ 23 callersMethodserialize
* Serializes a bitmap to a typed Uint8Array. * The returned array is automatically garbage collected and there is no need to be disposed manually.
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:36
↓ 22 callersFunction_throwFrozen
()
packages/roaring-wasm-src/RoaringBitmap32.ts:21
↓ 21 callersMethod#setPtr
(newPtr: NullablePtr)
packages/roaring-wasm-src/RoaringBitmap32.ts:1882
↓ 20 callersMethodaddMany
* Adds multiple values. * Using this is faster than calling add() multiple times. * Inserting ordered or partially ordered arrays is faster.
packages/roaring-wasm-src/RoaringBitmap32.ts:863
↓ 19 callersMethodasTypedArray
* Gets a new JS typed array instance that shares the memory used by this buffer. * Note that the buffer may point to an outdated WASM memory if the
packages/roaring-wasm-src/RoaringUint8Array.ts:177
↓ 19 callersMethodflipRange
* Creates a new bitmap with the content of the input bitmap but with given range of values flipped. * @param input The input bitmap, it will not be
packages/roaring-wasm-src/RoaringBitmap32.ts:137
↓ 18 callersMethodintersectsWithRange
* Check whether a bitmap and a closed range intersect. * * @param rangeStart The start of the range. * @param rangeEnd The end of the range.
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:442
↓ 18 callersMethodinvalidate
This method is called after the bitmap is modified
packages/roaring-wasm-src/RoaringBitmap32.ts:1877
↓ 18 callersFunctiontimed
(title, fn)
scripts/lib/utils.js:80
↓ 15 callersMethodrangeCardinality
* Gets the cardinality (number of elements) between rangeStart (included) to rangeEnd (excluded) of the bitmap. * Returns 0 if range is invalid or
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:142
↓ 14 callersMethodregister
(disposable: T)
packages/roaring-wasm-src/RoaringArenaAllocator.ts:117
↓ 13 callersMethoddispose
()
packages/roaring-wasm-src/IDisposable.ts:2
↓ 13 callersMethodthrow
(e?: unknown)
packages/roaring-wasm-src/RoaringBitmap32Iterator.ts:42
↓ 12 callersMethodjoin
* Converts the bitmap to a string in the format "1,2,3,4,5". * The resulting string may be very big, use this function with caution. * * @par
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:241
↓ 12 callersMethodremoveMany
( values: | ReadonlyRoaringBitmap32 | BasicTypedArray | Iterable<number | null | undefin
packages/roaring-wasm-src/RoaringBitmap32.ts:887
↓ 12 callersMethodsetAt
* Sets the value at the given index. * @param index - Zero-based index of the array element to be set, converted to an integer. Negative index coun
packages/roaring-wasm-src/RoaringUint8Array.ts:232
↓ 11 callersMethodadd
* Adds a 32 bit unsigned integer value. * Values are unique, this function does nothing if the value already exists. * * @param value - 32 bi
packages/roaring-wasm-src/RoaringBitmap32.ts:826
↓ 11 callersMethodaddOffset
* addOffset adds the value 'offset' to each and every value in a bitmap, generating a new bitmap in the process. * If offset + element is outside o
packages/roaring-wasm-src/RoaringBitmap32.ts:124
↓ 11 callersMethodset
* Writes the given array at the specified position * @param array - A typed or untyped array of values to set. * @param offset - The index in th
packages/roaring-wasm-src/RoaringUint8Array.ts:158
↓ 10 callersMethod#createEmpty
()
packages/roaring-wasm-src/RoaringBitmap32.ts:1906
↓ 10 callersMethodrangeUint32Array
* Converts a range of the bitmap to a Uint32Array. * The resulting array may be very big, use this function with caution. * * @param minimumV
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:252
↓ 10 callersMethodsliceJoin
* Converts a slice, define by start index (included) and end index (excluded) of the bitmap to a string in the form "1,2,3,4,5". * The resulting st
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:345
↓ 9 callersMethodindexOf
* Finds the index of the nth set element. * Returns -1 if not found. * * @param value - Element value * @returns element index or -1 if no
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:381
↓ 9 callersMethodreset
()
packages/roaring-wasm-src/RoaringBitmap32Iterator.ts:81
↓ 9 callersFunctionrunMain
(fn, title = fn.title)
scripts/lib/utils.js:27
↓ 9 callersMethodsliceArray
* Converts a slice, define by start index (included) and end index (excluded) of the bitmap to a number array. * The resulting array may be very bi
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:323
↓ 9 callersMethodsliceSet
* Converts a slice, define by start index (included) and end index (excluded) of the bitmap to a Set. * The resulting set may be very big, use this
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:334
↓ 9 callersMethodsliceUint32Array
* Converts a slice, define by start index (included) and end index (excluded) of the bitmap to a Uint32Array. * The resulting array may be very big
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:312
↓ 9 callersMethodunregister
(disposable: IDisposable | null | undefined)
packages/roaring-wasm-src/RoaringArenaAllocator.ts:122
↓ 8 callersFunctionisDisposable
(value: unknown)
packages/roaring-wasm-src/IDisposable.ts:16
↓ 8 callersMethodstop
* Stops the current arena allocator. * @returns The stopped arena allocator. * @see start * @see current * @see with
packages/roaring-wasm-src/RoaringArenaAllocator.ts:38
↓ 8 callersMethodtoUint32Array
* Converts the bitmap to a JS Uint32Array. * The resulting array may be very big, use this function with caution. * * @param output - The out
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:195
↓ 8 callersFunctiontryDispose
(disposable: IDisposable | null | undefined)
packages/roaring-wasm-src/IDisposable.ts:50
↓ 7 callersFunctiondispose
(disposable: IDisposable | null | undefined)
packages/roaring-wasm-src/IDisposable.ts:24
↓ 7 callersFunctiongetRangeOperationParameters
packages/roaring-wasm-src/cpp/roaring-js.c:93
↓ 7 callersMethodorMany
* Performs a union between all the given array of RoaringBitmap32 instances. * * This function is faster than calling or multiple times. * In
packages/roaring-wasm-src/RoaringBitmap32.ts:1755
↓ 7 callersMethodxorMany
* Performs a xor between all the given array of RoaringBitmap32 instances. * * This function is faster than calling xor multiple times. *
packages/roaring-wasm-src/RoaringBitmap32.ts:1806
↓ 6 callersMethodmoveToGreaterEqual
(minimumValue: number)
packages/roaring-wasm-src/RoaringBitmap32Iterator.ts:96
↓ 6 callersMethodrangeArray
* Converts a range of the bitmap to an JS Array. * The resulting array may be very big, use this function with caution. * * @param minimumVal
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:267
↓ 6 callersMethodrangeSet
* Converts a range of the bitmap to a Set. * The resulting set may be very big, use this function with caution. * * @param minimumValue - The
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:282
↓ 6 callersMethodremoveRange
* Removes all the values in the interval: [rangeStart, rangeEnd). * * First element is included, last element is excluded. * The number of re
packages/roaring-wasm-src/RoaringBitmap32.ts:753
↓ 5 callersMethodclear
* Clears the bitmap, removing all values.
packages/roaring-wasm-src/RoaringBitmap32.ts:670
↓ 5 callersMethodincludes
* Checks whether the given value is contained in the set. * * @param value - The value to look for. * @returns True if value exists in the se
packages/roaring-wasm-src/RoaringBitmap32.ts:38
↓ 5 callersFunctionremoveTrailingSlash
(s)
scripts/lib/utils.js:196
↓ 5 callersMethodserializeToRoaringUint8Array
* Serializes a bitmap to a byte buffer allocated in WASM memory. * * The returned RoaringUint8Array is allocated in WASM memory and not garbage
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:77
↓ 5 callersMethodstart
* Starts a new arena allocator. * @returns The new arena allocator.
packages/roaring-wasm-src/RoaringArenaAllocator.ts:27
↓ 5 callersMethodtoString
* Returns a string representation of an array.
packages/roaring-wasm-src/RoaringUint8Array.ts:206
↓ 4 callersMethodof
* The RoaringBitmap32.of() static method creates a new Array instance from a variable number of arguments, regardless of number or type of the argumen
packages/roaring-wasm-src/RoaringBitmap32.ts:96
↓ 4 callersMethodpop
* The pop() method removes the last element from a roaring bitmap and returns that element. * This method changes the size of the bitmap * @retu
packages/roaring-wasm-src/RoaringBitmap32.ts:938
↓ 4 callersMethodshrink
* Decreases the size of the allocated memory. * It does nothing if the new length is greater or equal to the current length. * If the new length
packages/roaring-wasm-src/RoaringUint8Array.ts:139
↓ 4 callersFunctionspawnAsync
(command, args, options)
scripts/lib/utils.js:131
↓ 4 callersMethodthrowIfDisposed
* Throws an exception if this object was disposed before.
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:116
↓ 4 callersMethodtoTypedArray
* Copies the content of this buffer to a typed array and returns it * * @param output - The typed array to copy to. If not provided, a new typed
packages/roaring-wasm-src/RoaringUint8Array.ts:188
↓ 3 callersMethod#end
()
packages/roaring-wasm-src/RoaringBitmap32Iterator.ts:151
↓ 3 callersMethod#init
()
packages/roaring-wasm-src/RoaringBitmap32Iterator.ts:128
↓ 3 callersMethodand
* Returns a new RoaringBitmap32 with the intersection (and) between the given two bitmaps. * * The provided bitmaps are not modified. * *
packages/roaring-wasm-src/RoaringBitmap32.ts:1697
↓ 3 callersMethodandNot
* Returns a new RoaringBitmap32 with the difference (and not) between the two given bitmaps. * * The provided bitmaps are not modified. *
packages/roaring-wasm-src/RoaringBitmap32.ts:1740
↓ 3 callersMethoddispose
* Frees the allocated memory. * Is safe to call this method more than once. * @returns True if memory gets freed during this call, false if not.
packages/roaring-wasm-src/RoaringUint8Array.ts:111
↓ 3 callersMethodmaximum
* Gets the maximum value stored in the bitmap. * If the bitmap is empty, returns 0. * * @returns The maximum 32 bit unsigned integer or 0 if
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:158
↓ 3 callersMethodminimum
* Gets the minimum value stored in the bitmap. * If the bitmap is empty, returns 0xFFFFFFFF * * @returns The minimum 32 bit unsigned integer
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:150
↓ 3 callersMethodor
* Returns a new RoaringBitmap32 with the union (or) of the two given bitmaps. * * The provided bitmaps are not modified. * * @param a The
packages/roaring-wasm-src/RoaringBitmap32.ts:1711
↓ 3 callersMethodoverwrite
* Overwrite the content of this bitmap with the content of another bitmap. * @param other - The other bitmap to copy. * @returns This RoaringBit
packages/roaring-wasm-src/RoaringBitmap32.ts:796
↓ 3 callersMethodrangeJoin
* Converts a range of the bitmap to a string in the form "1,2,3,4,5". * The resulting string may be very big, use this function with caution. *
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:297
↓ 3 callersMethodrank
* Returns the number of integers that are smaller or equal to the given value. * * @param value - The value to rank * @returns The number of
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:425
↓ 3 callersMethodremove
* Removes a value from the set checking if the bitmap changes. * Use remove() if you don't need to know if something changed. * If the value doe
packages/roaring-wasm-src/RoaringBitmap32.ts:59
↓ 3 callersMethodrunOptimize
* Convert array and bitmap containers to run containers when it is more efficient; * also convert from run containers when more space efficient.
packages/roaring-wasm-src/RoaringBitmap32.ts:1666
↓ 3 callersMethodshrinkToFit
* If needed, reallocate memory to shrink the memory usage. * * Returns the number of bytes saved. * * @returns The number of bytes saved.
packages/roaring-wasm-src/RoaringBitmap32.ts:1681
↓ 3 callersMethodswap
* Swaps the content of two RoaringBitmap32 instances. * * @static * @param {RoaringBitmap32} a First RoaringBitmap32 instance to swap * @p
packages/roaring-wasm-src/RoaringBitmap32.ts:1842
↓ 3 callersFunctiontotalTime
()
scripts/lib/utils.js:41
↓ 3 callersMethodxor
* Returns a new RoaringBitmap32 with the symmetric union (xor) between the two given bitmaps. * * The provided bitmaps are not modified. *
packages/roaring-wasm-src/RoaringBitmap32.ts:1725
↓ 2 callersMethod#orManyPtrs
( mem: number, len: number, bitmaps: readonly (false | ReadonlyRoaringBitmap32 | null | undefined)
packages/roaring-wasm-src/RoaringBitmap32.ts:2038
↓ 2 callersFunctioncleanDistFiles
()
scripts/clean.js:14
↓ 2 callersMethodclone
* Returns a new bitmap that is a copy of this bitmap, same as new ReadonlyRoaringBitmap32(copy) * @returns A cloned RoaringBitmap32 instance
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:122
↓ 2 callersMethoddelete
* Removes a value from the set checking if the bitmap changes. * Use remove() if you don't need to know if something changed. * If the value doe
packages/roaring-wasm-src/RoaringBitmap32.ts:921
↓ 2 callersFunctiondeleteDir
(dir)
scripts/clean.js:49
↓ 2 callersMethoddispose
()
packages/roaring-wasm-src/RoaringBitmap32Iterator.ts:117
↓ 2 callersFunctionemccLink
(environment, ofile)
scripts/compile-wasm.js:145
↓ 2 callersFunctionfail
(message: string)
test/web/main.ts:9
↓ 2 callersFunctionforkAsync
(modulePath, args, options)
scripts/lib/utils.js:147
↓ 2 callersFunctiongetFileSizesAsync
(patterns, options)
scripts/lib/utils.js:163
↓ 2 callersMethodisEqual
* Checks wether two roaring bitmap contains the same data. * * @param other - The other bitmap. * @returns True if the bitmaps contains the s
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:353
↓ 2 callersMethodisStrictSubset
* Returns true if this bitmap is strict subset of the other. * * @param other - The other bitmap * @returns True if this bitmap is a strict s
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:182
↓ 2 callersMethodisSubset
* Returns true if the bitmap is subset of the other. * * @param other - the other bitmap * @returns true if the bitmap is subset of the other
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:174
↓ 2 callersFunctionprettyElapsedTime
(elapsed)
scripts/lib/utils.js:189
↓ 2 callersMethodselect
* If the size of the roaring bitmap is strictly greater than rank, then * this function returns the element of given rank. * Otherwise, it retur
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:363
↓ 2 callersMethodshift
* The shift() method removes the first element from a roaring bitmap and returns that element. * This method changes the size of the bitmap * @r
packages/roaring-wasm-src/RoaringBitmap32.ts:959
↓ 2 callersFunctiontest
(args = [])
scripts/test.js:29
↓ 2 callersMethodtoSet
* Converts the bitmap to a JS Set<number>. * The resulting set may be very big, use this function with caution. * * @param output - The outpu
packages/roaring-wasm-src/ReadonlyRoaringBitmap32.ts:232
↓ 2 callersMethodtoUint32Array
* Converts the bitmap to a JS Uint32Array. * The resulting array may be very big, use this function with caution. * * @param output - The out
packages/roaring-wasm-src/RoaringBitmap32.ts:1041
↓ 2 callersMethodtryAdd
* Adds a 32 bit unsigned integer value checking if the bitmap changes. * Use add() if you don't need to know if something changed. * Values are
packages/roaring-wasm-src/RoaringBitmap32.ts:845
next →1–100 of 278, ranked by callers