Array.assign

Reset the buffer content

  1. Array assign(void[] data)
  2. Array assign(void[] data, size_t readable)
    class Array
    assign
  3. void[] assign()

Parameters

data void[]

The backing array to buffer within.

readable size_t

The number of bytes within data considered valid.

Return Value

Type: Array

The buffer instance.

Remarks: Set the backing array with some content readable. Use clear() to reset the content (make it all writable).

Meta