Data.this

Create new instance wrapping the given data.

  1. this(const(void)[] data, bool forceReallocation)
    struct Data
    this
    (
    const(void)[] data
    ,
    bool forceReallocation = false
    )
  2. this(void[] data, bool forceReallocation)
  3. this(size_t size, size_t capacity)
  4. this(DataWrapper wrapper, bool mutable)

Parameters

data const(void)[]

initial data

forceReallocation bool

when false, the contents will be duplicated to unmanaged memory only when it's not on the managed heap; when true, the contents will be reallocated always.

Meta