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;
}