structstd.heap.memory_pool.Options[src]

Fields

alignment: ?u29 = null

The alignment of the memory pool items. Use null for natural alignment.

growable: bool = true

If true, the memory pool can allocate additional items after a initial setup. If false, the memory pool will not allocate further after a call to initPreheated.

Source Code

Source code
pub const Options = struct {
    /// The alignment of the memory pool items. Use `null` for natural alignment.
    alignment: ?u29 = null,

    /// If `true`, the memory pool can allocate additional items after a initial setup.
    /// If `false`, the memory pool will not allocate further after a call to `initPreheated`.
    growable: bool = true,
}