Class RoaringBitmap32

A Roaring Bitmap that supports 32 bit unsigned integers.

The roaring bitmap allocates in WASM memory, remember to dispose the RoaringBitmap32 when not needed anymore to release WASM memory.

Hierarchy

  • IDisposable
  • ReadonlyRoaringBitmap32
  • Iterable<number>
    • RoaringBitmap32

Constructors

  • Creates a new roaring bitmap adding the specified values.

    The roaring bitmap allocates in WASM memory, remember to dispose the RoaringBitmap32 when not needed anymore to release WASM memory.

    Parameters

    • Optional valuesOrCapacity: null | number | ReadonlyRoaringBitmap32 | BasicTypedArray | Iterable<undefined | null | string | number | false> | readonly (undefined | null | string | number | false)[]
    • Optional arenaAllocator: null | RoaringArenaAllocator

    Returns RoaringBitmap32

Properties

#private: any

Accessors

  • get _p(): number | false
  • Internal

    Internal property, do not use.

    Returns number | false

  • get isDisposed(): boolean
  • Returns true if this instance was disposed. A disposed bitmap cannot be used anymore.

    Returns boolean

  • get isEmpty(): boolean
  • Returns true if the bitmap has no elements.

    Returns boolean

  • get isFrozen(): boolean
  • Property. True if the bitmap is read-only. A read-only bitmap cannot be modified, every operation will throw an error. You can freeze a bitmap using the freeze() method. A bitmap cannot be unfrozen.

    Returns boolean

  • get length(): number
  • The number of values in the set. Alias to this.size

    Returns number

  • get size(): number
  • Get the cardinality of the bitmap (number of elements).

    Returns number

  • get v(): number
  • A number that changes every time the bitmap might have changed. Do not make assumptions about the value of this property, it is not guaranteed to be sequential. The value might change after some operations also if the content of the bitmap does not change, because it would be too expensive to check if the content changed. This property is useful to check if the bitmap changed since the last time you checked it.

    Returns number

Methods

  • Adds a 32 bit unsigned integer value. Values are unique, this function does nothing if the value already exists.

    Parameters

    • value: number

      32 bit unsigned integer to add in the set.

    Returns RoaringBitmap32

    This RoaringBitmap32 instance.

    Throws

    If the bitmap is frozen.

  • Adds multiple values. Using this is faster than calling add() multiple times. Inserting ordered or partially ordered arrays is faster.

    Parameters

    • values: undefined | null | ReadonlyRoaringBitmap32 | BasicTypedArray | Iterable<undefined | null | string | number | false> | readonly (undefined | null | string | number | false)[]

      The values to add.

    Returns RoaringBitmap32

  • Adds all the values in the interval: [rangeStart, rangeEnd).

    First element is included, last element is excluded. The number of added values is rangeEnd - rangeStart.

    Areas outside the range are passed through unchanged.

    Parameters

    • Optional rangeStart: number

      The start index. Trimmed to 0.

    • Optional rangeEnd: number

      The end index. Trimmed to 4294967296.

    Returns RoaringBitmap32

    This RoaringBitmap32 instance.

  • Computes the size of the intersection between two bitmaps. Both bitmaps are unchanged.

    Parameters

    • other: ReadonlyRoaringBitmap32

      The other bitmap.

    Returns number

    Cardinality of the intersection between two bitmaps.

  • Intersects this bitmap with another. Removes the elements from this bitmap that don't exists in the other. Stores the result in this bitmap. The provided bitmap is not modified.

    Parameters

    • other: ReadonlyRoaringBitmap32

      The other bitmap.

    Returns void

  • Computes the size of the difference (andnot) of two bitmaps. Both bitmaps are unchanged.

    Parameters

    • other: ReadonlyRoaringBitmap32

      The other bitmap.

    Returns number

    Cardinality of the difference (andnot) of two bitmaps.

  • Compute the difference between this and the provided bitmap, writing the result in the current bitmap. The provided bitmap is not modified.

    Parameters

    • other: ReadonlyRoaringBitmap32

      The other bitmap.

    Returns RoaringBitmap32

  • The at() method takes an integer value and returns the item at that index, allowing for positive and negative integers. Negative integers count back from the last item in the set.

    Parameters

    • index: number

      Zero-based index of the array element to be returned, converted to an integer. Negative index counts back from the end of the array — if index < 0, index + array.length is accessed.

    Returns undefined | number

    The element in the set matching the given index. Always returns undefined if index < -array.length or index >= array.length without attempting to access the corresponding property.

  • Clears the bitmap, removing all values.

    Returns void

  • Returns a new bitmap that is a copy of this bitmap, same as new RoaringBitmap32(copy)

    Returns RoaringBitmap32

    A cloned RoaringBitmap32 instance

  • Checks whether the given value is contained in the set.

    Parameters

    • value: unknown

      The value to look for.

    Returns boolean

    True if value exists in the set, false if not.

  • 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 does not exists, this function does nothing and returns false.

    Parameters

    • value: number

      32 bit unsigned integer to remove from the set.

    Returns boolean

    True if the bitmap changed, false if not.

    Throws

    If the bitmap is frozen.

  • Creates a new roaring bitmap deserializing it from a buffer

    The roaring bitmap allocates in WASM memory, remember to dispose the RoaringBitmap32 when not needed anymore to release WASM memory.

    Parameters

    Returns RoaringBitmap32

    The reulting bitmap. Remember to dispose the instance when finished using it.

  • Creates a new roaring bitmap deserializing it from a buffer

    The roaring bitmap allocates in WASM memory, remember to dispose the RoaringBitmap32 when not needed anymore to release WASM memory.

    Parameters

    Returns RoaringBitmap32

    The reulting bitmap. Remember to dispose the instance when finished using it.

  • Disposes this object freeing all WASM memory associated to it. Is safe to call this method more than once.

    Returns boolean

  • Negates (in place) the roaring bitmap within a specified interval: [rangeStart, rangeEnd).

    First element is included, last element is excluded. The number of negated values is rangeEnd - rangeStart.

    Areas outside the range are passed through unchanged.

    Parameters

    • Optional rangeStart: number

      The start index. Trimmed to 0.

    • Optional rangeEnd: number

      The end index. Trimmed to 4294967296.

    Returns RoaringBitmap32

    This RoaringBitmap32 instance.

    Memberof

    RoaringBitmap32

  • Makes this roaring bitmap readonly. Sets isFrozen to true. This is a no-op if isFrozen is already true. Every attempt to modify the bitmap will throw an exception. A frozen bitmap cannot be unfrozen, but it can be disposed.

    Returns RoaringBitmap32

  • How many bytes are required to serialize this bitmap.

    Parameters

    Returns number

  • Checks whether the given value is contained in the set.

    Parameters

    • value: unknown

      The value to look for.

    Returns boolean

    True if value exists in the set, false if not.

  • Check whether a range of values from rangeStart (included) to rangeEnd (excluded) is present

    Parameters

    • Optional rangeStart: number

      The start value (inclusive).

    • Optional rangeEnd: number

      The end value (exclusive).

    Returns boolean

    True if the bitmap contains the whole range of values from rangeStart (included) to rangeEnd (excluded), false if not.

    Memberof

    ReadonlyRoaringBitmap32

  • Checks whether the given value is contained in the set.

    Parameters

    • value: unknown

      The value to look for.

    Returns boolean

    True if value exists in the set, false if not.

  • Finds the index of the nth set element. Returns -1 if not found.

    Parameters

    • value: number

      Element value

    Returns number

    element index or -1 if not found

  • Check whether the two bitmaps intersect (have at least one element in common).

    Parameters

    • other: ReadonlyRoaringBitmap32

      The other bitmap.

    Returns boolean

    True if the two bitmaps intersects, false if not.

  • Check whether a bitmap and a closed range intersect.

    Parameters

    • Optional rangeStart: number

      The start of the range.

    • Optional rangeEnd: number

      The end of the range.

    Returns boolean

    boolean True if the bitmap and the range intersects, false if not.

  • This method is called after the bitmap is modified

    Returns void

  • Checks wether two roaring bitmap contains the same data.

    Parameters

    • other: ReadonlyRoaringBitmap32

      The other bitmap.

    Returns boolean

    True if the bitmaps contains the same data, false if not.

  • Returns true if this bitmap is strict subset of the other.

    Parameters

    • other: ReadonlyRoaringBitmap32

      The other bitmap

    Returns boolean

    True if this bitmap is a strict subset of other

  • Returns true if the bitmap is subset of the other.

    Parameters

    • other: ReadonlyRoaringBitmap32

      the other bitmap

    Returns boolean

    true if the bitmap is subset of the other.

  • Computes the Jaccard index between two bitmaps. (Also known as the Tanimoto distance, or the Jaccard similarity coefficient) See https://en.wikipedia.org/wiki/Jaccard_index

    The Jaccard index is undefined if both bitmaps are empty.

    Parameters

    • other: ReadonlyRoaringBitmap32

    Returns number

    The Jaccard index

  • 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.

    Parameters

    • Optional sepatator: string

      The optional separator to use between values, defaults to ",".

    • Optional maxStringLength: number

      The optional approximate maximum number of characters the output string can contain.

    Returns string

  • Gets the maximum value stored in the bitmap. If the bitmap is empty, returns 0.

    Returns number

    The maximum 32 bit unsigned integer or 0 if empty.

  • Gets the minimum value stored in the bitmap. If the bitmap is empty, returns 0xFFFFFFFF

    Returns number

    The minimum 32 bit unsigned integer or 0xFFFFFFFF if empty.

  • Optimizes the bitmap releasing unused memory and compressing containers. Returns true if something changed.

    Returns boolean

    True if something changed.

  • Computes the size of the union of two bitmaps. Both bitmaps are unchanged.

    Parameters

    • other: ReadonlyRoaringBitmap32

      The other bitmap.

    Returns number

    Cardinality of the union of two bitmaps.

  • Adds the element of the other bitmap into this bitmap. Stores the result in this bitmap. The provided bitmap is not modified.

    Parameters

    • other: ReadonlyRoaringBitmap32

      The other bitmap.

    Returns RoaringBitmap32

  • Overwrite the content of this bitmap with the content of another bitmap.

    Parameters

    • other: ReadonlyRoaringBitmap32

      The other bitmap to copy.

    Returns RoaringBitmap32

    This RoaringBitmap32 instance.

  • The pop() method removes the last element from a roaring bitmap and returns that element. This method changes the size of the bitmap

    Returns undefined | number

    The last element in the bitmap, or undefined if the bitmap is empty.

  • Converts a range of the bitmap to an JS Array. The resulting array may be very big, use this function with caution.

    Parameters

    • Optional minimumValue: number

      The range start value (inclusive).

    • Optional maximumValue: number

      The range end value (exclusive).

    • Optional output: number[]

      The output array. If not specified, a new array is created.

    Returns number[]

    The array containing all values within the given range in the bitmap.

  • Gets the cardinality (number of elements) between rangeStart (included) to rangeEnd (excluded) of the bitmap. Returns 0 if range is invalid or if no element was found in the given range.

    Parameters

    • Optional rangeStart: number

      The start value (inclusive).

    • Optional rangeEnd: number

      The end value (exclusive).

    Returns number

    The number of elements between rangeStart (included) to rangeEnd (excluded).

  • 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.

    Parameters

    • Optional minimumValue: number

      The range start value (inclusive).

    • Optional maximumValue: number

      The range end value (exclusive).

    • Optional separator: string

      The separator to use between values. Defaults to ",".

    Returns string

    The string containing all values within the given range in the bitmap.

  • Converts a range of the bitmap to a Set. The resulting set may be very big, use this function with caution.

    Parameters

    • Optional minimumValue: number

      The range start value (inclusive).

    • Optional maximumValue: number

      The range end value (exclusive).

    • Optional output: Set<number>

      The output set. If not specified, a new set is created.

    Returns Set<number>

    The set containing all values within the given range in the bitmap.

  • Converts a range of the bitmap to a Uint32Array. The resulting array may be very big, use this function with caution.

    Parameters

    • Optional minimumValue: number

      The range start value (inclusive).

    • Optional maximumValue: number

      The range end value (exclusive).

    • Optional output: Uint32Array

      The output array. If not specified, a new array is created.

    Returns Uint32Array

    The array containing all values within the given range in the bitmap.

  • Returns the number of integers that are smaller or equal to the given value.

    Parameters

    • value: number

      The value to rank

    Returns number

    The number of values smaller than the given value

  • 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 does not exists, this function does nothing and returns false.

    Alias to delete.

    Parameters

    • value: number

      32 bit unsigned integer to remove from the set.

    Returns boolean

    True if the bitmap changed, false if not.

    Throws

    If the bitmap is frozen.

  • Parameters

    • values: undefined | null | ReadonlyRoaringBitmap32 | BasicTypedArray | Iterable<undefined | null | string | number | false> | readonly (undefined | null | string | number | false)[]

    Returns RoaringBitmap32

  • Removes all the values in the interval: [rangeStart, rangeEnd).

    First element is included, last element is excluded. The number of renived values is rangeEnd - rangeStart.

    Areas outside the range are passed through unchanged.

    Parameters

    • Optional rangeStart: number

      The start index. Trimmed to 0.

    • Optional rangeEnd: number

      The end index. Trimmed to 4294967296.

    Returns RoaringBitmap32

    This RoaringBitmap32 instance.

    Memberof

    RoaringBitmap32

  • Remove run-length encoding even when it is more space efficient.

    Return whether a change was applied.

    Returns boolean

    True if a change was applied, false if not.

  • Convert array and bitmap containers to run containers when it is more efficient; also convert from run containers when more space efficient.

    Returns true if the bitmap has at least one run container.

    Additional savings might be possible by calling shrinkToFit().

    Returns boolean

    True if the bitmap has at least one run container.

  • If the size of the roaring bitmap is strictly greater than rank, then this function returns the element of given rank. Otherwise, it returns NaN.

    Parameters

    • rank: number

      Element rank

    Returns number

    element or NaN

  • Serializes a bitmap to a typed Uint8Array. The returned array is automatically garbage collected and there is no need to be disposed manually.

    Parameters

    Returns Uint8Array

    The Uint8Array that contains the serialized bitmap

  • Serializes a bitmap to a typed Uint8Array. The returned array is automatically garbage collected and there is no need to be disposed manually.

    Type Parameters

    Parameters

    • format: SerializationFormatType

      The serialization format.

    • output: TOutput

      The output that will contain the serialized bitmap. If not provided, a new array is created.

    Returns TOutput extends RoaringUint8Array
        ? RoaringUint8Array
        : TOutput extends typeof RoaringUint8Array
            ? RoaringUint8Array
            : Uint8Array

    The Uint8Array that contains the serialized bitmap

  • Serializes a bitmap to a typed Uint8Array. The returned array is automatically garbage collected and there is no need to be disposed manually.

    Type Parameters

    Parameters

    • output: TOutput

      The Uint8Array that will contain the serialized bitmap.

    • format: SerializationFormatType

      The serialization format.

    Returns TOutput extends RoaringUint8Array
        ? RoaringUint8Array
        : Uint8Array

    The Uint8Array that contains the serialized bitmap

  • Serializes a bitmap to a byte buffer allocated in WASM memory.

    The returned RoaringUint8Array is allocated in WASM memory and not garbage collected, it should to be freed manually calling dispose() as soon as possible.

    Parameters

    Returns RoaringUint8Array

    The RoaringUint8Array, a buffer allocated in WASM memory.

  • The shift() method removes the first element from a roaring bitmap and returns that element. This method changes the size of the bitmap

    Returns undefined | number

    The first element in the bitmap, or undefined if the bitmap is empty.

    Memberof

    RoaringBitmap32

  • If needed, reallocate memory to shrink the memory usage.

    Returns the number of bytes saved.

    Returns number

    The number of bytes saved.

  • 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 big, use this function with caution.

    Parameters

    • Optional start: number

      The slice start index (inclusive).

    • Optional end: number

      The slice end index (exclusive).

    • Optional output: number[]

      The output array. If not specified, a new array is created.

    Returns number[]

    The array containing all values within the given slice in the bitmap.

  • 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 string may be very big, use this function with caution.

    Parameters

    • Optional start: number

      The slice start index (inclusive).

    • Optional end: number

      The slice end index (exclusive).

    • Optional separator: string

      The separator to use between values. Defaults to ",".

    Returns string

    The string containing all values within the given slice in the bitmap.

  • 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 function with caution.

    Parameters

    • Optional start: number

      The slice start index (inclusive).

    • Optional end: number

      The slice end index (exclusive).

    • Optional output: Set<number>

      The output set. If not specified, a new set is created.

    Returns Set<number>

    The set containing all values within the given slice in the bitmap.

  • 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, use this function with caution.

    Parameters

    • Optional start: number

      The slice start index (inclusive).

    • Optional end: number

      The slice end index (exclusive).

    • Optional output: Uint32Array

      The output array. If not specified, a new array is created.

    Returns Uint32Array

    The array containing all values within the given slice in the bitmap.

  • Throws an exception if this object was disposed before.

    Returns void

  • Converts the bitmap to a JS array. The resulting array may be very big, use this function with caution.

    Returns number[]

    The array containing all values in the bitmap.

  • Converts the bitmap to a JS array. The resulting array may be very big, use this function with caution.

    Parameters

    • maxLength: number

      The maximum length of the output array.

    Returns number[]

    The array containing all values in the bitmap.

  • Append all items in the bitmap to a JS array. The resulting array may be very big, use this function with caution.

    Parameters

    • output: number[]

      The output array. If not specified, a new array is created.

    • Optional maxLength: number

      The optional maximum number of values to read from the bitmap and push in the array.

    Returns number[]

    The array containing all values in the bitmap.

  • Converts the bitmap to a JS Set. The resulting set may be very big, use this function with caution.

    Parameters

    • Optional output: Set<number>

      The output Set. If not specified, a new Set is created.

    • Optional maxLength: number

      The optional maximum number of values to read from the bitmap and add in the set.

    Returns Set<number>

    The set containing all values in the bitmap.

  • Converts the bitmap to a JS Uint32Array. The resulting array may be very big, use this function with caution.

    Parameters

    • Optional output: number | Uint32Array

      The output Uint32Array. If not specified, a new array is created. If the output array is too small, only the first values that fit are written. If the output array is too big, the remaining values are left untouched and a new subarray is returned. If is a number, a new array of the specified size is created.

    Returns Uint32Array

    The Uint32Array containing all values in the bitmap.

  • 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 unique, this function does nothing and returns false if the value already exists.

    Parameters

    • value: number

      32 bit unsigned integer to add in the set.

    Returns boolean

    True if the bitmap changed, false if not.

    Throws

    If the bitmap is frozen.

  • Computes the size of the symmetric difference (xor) between two bitmaps. Both bitmaps are unchanged.

    Parameters

    • other: ReadonlyRoaringBitmap32

      The other bitmap.

    Returns number

    Cardinality of the symmetric difference (xor) of two bitmaps.

  • Computes the difference between two bitmaps. Stores the result in this bitmap. The provided bitmap is not modified.

    Parameters

    • other: ReadonlyRoaringBitmap32

      The other bitmap.

    Returns RoaringBitmap32

  • 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 of the range [0,2^32), that the element will be dropped.

    Parameters

    • input: ReadonlyRoaringBitmap32

      The input bitmap.

    • offset: number

      The offset to add to each element. Can be positive or negative.

    Returns RoaringBitmap32

    A new bitmap with the offset added to each element.

  • Returns a new RoaringBitmap32 with the intersection (and) between the given two bitmaps.

    The provided bitmaps are not modified.

    Parameters

    • a: ReadonlyRoaringBitmap32

      The first RoaringBitmap32 instance to and.

    • b: ReadonlyRoaringBitmap32

      The second RoaringBitmap32 instance to and.

    Returns RoaringBitmap32

    A new RoaringBitmap32 that contains the intersection a AND b

  • Returns a new RoaringBitmap32 with the difference (and not) between the two given bitmaps.

    The provided bitmaps are not modified.

    Parameters

    • a: ReadonlyRoaringBitmap32

      The first RoaringBitmap32 instance.

    • b: ReadonlyRoaringBitmap32

      The second RoaringBitmap32 instance.

    Returns RoaringBitmap32

    Static

  • Creates a new roaring bitmap deserializing it from a buffer

    The roaring bitmap allocates in WASM memory, remember to dispose the RoaringBitmap32 when not needed anymore to release WASM memory.

    Parameters

    Returns RoaringBitmap32

    The reulting bitmap. Remember to dispose the instance when finished using it.

  • Creates a new roaring bitmap deserializing it from a buffer

    The roaring bitmap allocates in WASM memory, remember to dispose the RoaringBitmap32 when not needed anymore to release WASM memory.

    Parameters

    Returns RoaringBitmap32

    The reulting bitmap. Remember to dispose the instance when finished using it.

  • Creates a new bitmap with the content of the input bitmap but with given range of values flipped.

    Parameters

    • input: ReadonlyRoaringBitmap32

      The input bitmap, it will not be modified

    • rangeStart: number

      The start index (inclusive).

    • rangeEnd: number

      The end index (exclusive).

    Returns RoaringBitmap32

    A new copied bitmap with the range flipped.

  • Parameters

    • values: undefined | null | ReadonlyRoaringBitmap32 | BasicTypedArray | Iterable<undefined | null | string | number | false> | readonly (undefined | null | string | number | false)[]

    Returns RoaringBitmap32

  • Creates a new bitmap that contains all the values in the interval: [rangeStart, rangeEnd). Is possible to specify the step parameter to have a non contiguous range.

    Parameters

    • Optional rangeStart: number

      The start value. Trimmed to 0.

    • Optional rangeEnd: number

      The end value, excluded. Trimmed to 4294967296.

    • Optional step: number

      The increment step, defaults to 1.

    Returns RoaringBitmap32

    A new RoaringBitmap32 instance.

    Static

  • The RoaringBitmap32.of() static method creates a new Array instance from a variable number of arguments, regardless of number or type of the arguments. Note that is faster to pass a Uint32Array instance instead of an array or an iterable.

    Parameters

    • Rest ...values: (undefined | null | string | number | false)[]

      A set of values to add to the new RoaringBitmap32 instance.

    Returns RoaringBitmap32

    A new RoaringBitmap32 instance.

    Static

  • Returns a new RoaringBitmap32 with the union (or) of the two given bitmaps.

    The provided bitmaps are not modified.

    Parameters

    • a: ReadonlyRoaringBitmap32

      The first RoaringBitmap32 instance to or.

    • b: ReadonlyRoaringBitmap32

      The second RoaringBitmap32 instance to or.

    Returns RoaringBitmap32

  • Performs a union between all the given array of RoaringBitmap32 instances.

    This function is faster than calling or multiple times. In some circumstances orManyHeap is faster than orMany.

    Parameters

    • bitmaps: readonly (undefined | null | false | ReadonlyRoaringBitmap32)[]

      An array of RoaringBitmap32 instances to or together.

    Returns RoaringBitmap32

    A new RoaringBitmap32 that contains the union of all the given bitmaps.

  • Performs a union between all the given array of RoaringBitmap32 instances.

    This function is faster than calling or multiple times. In some circumstances orManyHeap is faster than orMany.

    Parameters

    • bitmaps: readonly (undefined | null | false | ReadonlyRoaringBitmap32)[]

      An array of RoaringBitmap32 instances to or together.

    Returns RoaringBitmap32

    A new RoaringBitmap32 that contains the union of all the given bitmaps.

  • Swaps the content of two RoaringBitmap32 instances.

    Parameters

    Returns void

    Static

    Memberof

    RoaringBitmap32

  • Returns a new RoaringBitmap32 with the symmetric union (xor) between the two given bitmaps.

    The provided bitmaps are not modified.

    Parameters

    • a: ReadonlyRoaringBitmap32

      The first RoaringBitmap32 instance to xor.

    • b: ReadonlyRoaringBitmap32

      The second RoaringBitmap32 instance to xor.

    Returns RoaringBitmap32

  • Performs a xor between all the given array of RoaringBitmap32 instances.

    This function is faster than calling xor multiple times.

    Parameters

    • bitmaps: readonly (undefined | null | false | ReadonlyRoaringBitmap32)[]

      An array of RoaringBitmap32 instances to or together.

    Returns RoaringBitmap32

    A new RoaringBitmap32 that contains the xor of all the given bitmaps.

Generated using TypeDoc