vibe.d beta banner
get vibe.d
0.10.0

Asynchronous I/O that doesn’t get in your way, written in D

Struct AllocAppender

struct AllocAppender(ArrayType, E) ;

Constructors

NameDescription
this (alloc, initial_buffer)

Fields

NameTypeDescription
m_alloc IAllocator
m_allocatedBuffer bool
m_data AllocAppender.ElemType[]
m_remaining AllocAppender.ElemType[]

Properties

NameTypeDescription
data[get] ArrayType

Methods

NameDescription
append (del) Appends a number of bytes in-place.
grow (min_free)
put (el)
put (arr)
put (arr)
put (el)
put (el)
reserve (amount) Grows the capacity of the internal buffer so that it can hold a minumum amount of elements.
reset (reset_mode)

Aliases

NameDescription
ElemType
Authors

Sönke Ludwig

Copyright

© 2012 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.