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 Asn1ParserContext

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
module juptune.asn1.lang.common;

struct Asn1ParserContext
{
    /++ ALIASES ++/
    
    ///
    alias __xdtor = __MARMOS_BUG__;
    ///
    alias __xpostblit = __MARMOS_BUG__;
    
    /++ FUNCTIONS ++/
    
    ///
    NodeT allocNode(NodeT : Asn1BaseNode, CtorArgs...)(CtorArgs args);
    ///
    NodeT allocNode(NodeT : Asn1BaseIr, CtorArgs...)(CtorArgs args);
    ///
    ulong bytesAllocated();
    ///
    Asn1ParserContext opAssign(Asn1ParserContext p);
    /// Creates a copy of the given string, and ties its lifetime with this context instance. 
    String preserveString(const char[] slice);
    /// An overload of preserveString that doesn't create a copy, but instead preserves a living instance of str , so that its ref count doesn't reach 0 until sometime after this context instance is destroyed. 
    void preserveString(String str);
    
    /++ VARIABLES ++/
    
    ///
    StatsCollector!(AllocatorList!(AllocatorList!((n) => Region!Mallocator(1024 * 1024), Mallocator).Factory, Mallocator), 8192LU, 0LU) allocator;
    ///
    ArrayBase!(Malloc, 8LU, (length, capacity) => max(capacity, length) * 2, (length, capacity) => length < capacity / 2, (length, capacity) => capacity / 2, Asn1BaseIr) irToDtor;
    ///
    ArrayBase!(Malloc, 8LU, (length, capacity) => max(capacity, length) * 2, (length, capacity) => length < capacity / 2, (length, capacity) => capacity / 2, Asn1BaseNode) nodesToDtor;
    ///
    ArrayBase!(Malloc, 8LU, (length, capacity) => max(capacity, length) * 2, (length, capacity) => length < capacity / 2, (length, capacity) => capacity / 2, String) strings;
}

Aliases

Name Description
__xdtor
__xpostblit

Functions

Name Description
allocNode
allocNode
bytesAllocated
opAssign
preserveString

Creates a copy of the given string, and ties its lifetime with this context instance.

preserveString

An overload of preserveStringthat doesn't create a copy, but instead preserves a living instance of str, so that its ref count doesn't reach 0 until sometime after this context instance is destroyed.

Variables

Name Description
allocator
irToDtor
nodesToDtor
strings