IAppendBufferReader

Read-only AppendBuffer interface.

Note that there is no strict write protection to an IAppendBufferReader instance because it is still possible to modify the content an obtained slice refers to. However, this is not the intention of this interface and may not result in the desired or even result in undesired side effects.

Members

Aliases

ElementType
alias ElementType = T
Undocumented in source.
R
alias R = U[]

Unless T is 'void' opIndex() is declared and the static_array_element flag defined which tells whether T is a static array type or not. R is defined as return type of opIndex() and other methods which return an array element. Normally this aliases T; however, if T is a static array type which cannot be the return type, it aliases the dynamic array of the same base type. For example, if T aliases int[4], R aliases int[]. If T is 'void', static_array_element, R and opIndex are not declared/defined at all.

R
alias R = T
Undocumented in source.

Functions

opIndex
R opIndex(size_t i)

Returns the i-th element in content.

opSlice
T[] opSlice()
opSlice
T[] opSlice(size_t start, size_t end)

Returns content[start .. end]. start must be at most end and end must be at most the current content length.

tail
T[] tail(size_t start)

Returns content[start .. length].

Static variables

element_size
auto element_size;
Undocumented in source.
static_array_element
auto static_array_element;
Undocumented in source.
static_array_element
auto static_array_element;
Undocumented in source.
static_array_element
auto static_array_element;
Undocumented in source.

Inherited Members

From IAppendBufferBase

length
size_t length()

Meta