Buffers.this

Initializes Buffers. Each buffer size is given in the |chunk_length|. The maximum number of buffers is given in the |max_chunk|. On reset, first |chunk_keep| buffers are kept and remaining buffers are deleted. Each buffer will have bufs.pos and bufs.last shifted to left by |offset| bytes on creation and reset.

This function allocates first buffer. bufs.head and bufs.cur will point to the first buffer after this call.

  1. this(size_t _chunk_length, size_t _max_chunk, bool _use_secure_mem, bool _zeroize_on_free)
  2. this(size_t _chunk_length, size_t _max_chunk, size_t _offset, bool _use_secure_mem, bool _zeroize_on_free)
  3. this(size_t _chunk_length, size_t _max_chunk, size_t _chunk_keep, size_t _offset, bool _use_secure_mem, bool _zeroize_on_free)
    class Buffers
    this
    (,
    size_t _max_chunk
    ,,
    size_t _offset
    ,
    bool _use_secure_mem = false
    ,
    bool _zeroize_on_free = false
    )
  4. this(ubyte[] buf)

Meta