memset

Buffer.memset(value: int = 0, size: int = 0, offset: int = 0)

Initializes the specified region of the device buffer to a constant byte value.

Parameters:
  • value (int) -- The int8 byte value written to the target region. Defaults to 0.

  • size (int) -- The number of bytes to initialize. If set to 0, all bytes from offset to the end of the buffer are initialized.

  • offset (int) -- Byte offset from the beginning of the device buffer.