copy

Copies struct data to other chunk and adjusts all internal pointers to reference new buffer.

  1. Contiguous!(S) copy(Contiguous!(S) src, Contiguous!(S) dst)
    copy
    (
    S
    )
    (,
    ref Contiguous!(S) dst
    )
  2. Contiguous!(S) copy(S src, Contiguous!(S) dst)

Parameters

src Contiguous!(S)

source struct (must be already contiguous)

dst Contiguous!(S)

target struct chunk to copy data to. Will grow if current length is smaller than src.data.length

Return Value

Type: Contiguous!(S)

dst by value

Throws

DeserializationException if src is not well-formed

/*****************************************************************************

Meta