Nbuff.data

return immutable continuous view to [beg, end] of this nbuff. Data copy: We can avoid data copy if [beg, end] lies within single stored immutable chunk. Then we just return ref to this chunk We can't avoid data copy if [beg, end] span several chunks. Then we have to join them.

  1. NbuffChunk data(size_t beg, size_t end)
    struct Nbuff
    @safe
    data
    (
    size_t beg
    ,
    size_t end
    )
  2. NbuffChunk data()

Meta