RAPIDS
    Preparing search index...

    Class Uint8Buffer

    Hierarchy (View Summary)

    Indexable

    • [index: number]: number
    Index

    Constructors

    Properties

    buffer: Memory
    byteLength: number
    byteOffset: number
    BYTES_PER_ELEMENT: number
    length: number
    TypedArray: TypedArrayConstructor<Uint8Array<ArrayBufferLike>>
    BYTES_PER_ELEMENT: number = Uint8Array.BYTES_PER_ELEMENT
    TypedArray: Uint8ArrayConstructor = Uint8Array

    Methods

    • Copies data from a region of a source MemoryView, TypedArray, or Array to a region in this MemoryView, even if the source region overlaps with this MemoryView.

      Parameters

      • source: MemoryData | Iterable<number | bigint, any, any> | ArrayLike<number | bigint>

        The MemoryView, TypedArray, or Array to copy from.

      • sourceStart: number = 0

        The offset in source at which to begin copying. Default: 0.

      • targetStart: number = 0

        The offset in this from which to begin writing. Default: 0.

      • targetEnd: number = ...

        The offset in this at which to stop writing (not inclusive). Default: this.length - targetStart.

      Returns Uint8Buffer

      this

    • Copies data from a region of this MemoryView to a region in a target MemoryView, TypedArray, or Array, even if the target region overlaps with this MemoryView.

      Parameters

      • target: any[] | MemoryData

        The MemoryView, TypedArray, or Array to copy into.

      • targetStart: number = 0

        The offset in target at which to begin writing. Default: 0.

      • sourceStart: number = 0

        The offset in this from which to begin copying. Default: 0.

      • sourceEnd: number = ...

        The offset in this at which to stop copying (not inclusive). Default: Default: this.length - sourceStart.

      Returns Uint8Buffer

      this

    • Returns the this object after filling the section identified by start and end with value.

      Parameters

      • value: number

        value to fill array section with.

      • Optionalstart: number

        index to start filling the array at. If start is negative, it is treated as length+start where length is the length of the array.

      • Optionalend: number

        index to stop filling the array at. If end is negative, it is treated as length+end.

      Returns Uint8Buffer

    • Sets a value or an array of values.

      Parameters

      • array: MemoryData | ArrayLike<bigint> | ArrayLike<number>

        A typed or untyped array of values to set.

      • Optionalstart: number

        The index in the current array at which the values are to be written.

      Returns void

    • Returns a section of an array.

      Parameters

      • Optionalstart: number

        The beginning of the specified portion of the array.

      • Optionalend: number

        The end of the specified portion of the array. This is exclusive of the element at the index 'end'.

      Returns Uint8Buffer

    • Creates a new MemoryView view over the underlying Memory of this array, referencing the elements at begin, inclusive, up to end, exclusive.

      Parameters

      • Optionalbegin: number

        The index of the beginning of the array.

      • Optionalend: number

        The index of the end of the array.

      Returns Uint8Buffer

    • Copies the underlying CUDA memory into a JavaScript typed array.

      Returns Uint8Array

      A JavaScript typed array copy of the underlying CUDA memory.