Marmos
v juptune
v asn1
v lang
v ast
v Classes
v Enums
v ir
v parser
v Enums
v Structs
v core
v crypto
v keyexchange
v memory
v data
v alphabet
v buffer
v json
v builder
v parser
v Enums
v Structs
v serialise
v Structs
v Templates
v pem
v Enums
v Structs

Structs FiberAllocatorConfig

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module juptune.event.fiber;

struct FiberAllocatorConfig
{
    /++ FUNCTIONS ++/
    
    ///
    FiberAllocatorConfig shouldZeroOutBlocksOnFree(bool flag);
    ///
    FiberAllocatorConfig withBlockStackSize(ulong bytes);
    ///
    FiberAllocatorConfig withBlocksPerWall(ulong count);
    
    /++ VARIABLES ++/
    
    /// The minimum amount of bytes to allocate for each blocks' stack. 
    ulong blockStackSize;
    /// How many blocks to allocate at one time, per wall. 
    ulong blocksPerWall;
    /// Whether to zero-out the stack memory of a block during deallocation 
    bool zeroBlocksOnFree;
}

Documentation

Configuration for a FiberAllocator.

Functions

Name Description
shouldZeroOutBlocksOnFree
withBlockStackSize
withBlocksPerWall

Variables

Name Description
blockStackSize

The minimum amount of bytes to allocate for each blocks' stack.

blocksPerWall

How many blocks to allocate at one time, per wall.

zeroBlocksOnFree

Whether to zero-out the stack memory of a block during deallocation