Bytes.this

Creates a new #GBytes from data.

data is copied. If size is 0, data may be null.

  1. this(void* ptr, Flag!"Take" take)
  2. this(ubyte[] data)
    class Bytes
    this
    (
    ubyte[] data = null
    )

Parameters

data ubyte[]

the data to be used for the bytes

Return Value

a new #GBytes