mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-15 17:35:45 +00:00
1007 lines
64 KiB
C
1007 lines
64 KiB
C
/* Generated by Nim Compiler v1.2.6 */
|
|
/* (c) 2020 Andreas Rumpf */
|
|
/* The generated code is subject to the original license. */
|
|
/* Compiled for: Linux, amd64, gcc */
|
|
/* Command for C compiler:
|
|
gcc -c -w -pthread -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/install/usr/include -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1/src -DHAVE_CONFIG_H -DHAVE_BUILTIN_EXPECT -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/src -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/inc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/tools -DBR_USE_UNIX_TIME=1 -DBR_USE_URANDOM=1 -DBR_LE_UNALIGNED=1 -DBR_64=1 -DBR_amd64=1 -DBR_INT128=1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/libnatpmp-upstream -DENABLE_STRNATPMPERR -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/certs -march=native -g3 -Og -O3 -fno-strict-aliasing -fno-ident -I/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib -I/home/runner/work/nim-waku/nim-waku/waku/common -o nimcache/release/wakubridge/@m..@s..@svendor@snim-faststreams@sfaststreams@sbuffers.nim.c.o nimcache/release/wakubridge/@m..@s..@svendor@snim-faststreams@sfaststreams@sbuffers.nim.c */
|
|
#define NIM_INTBITS 64
|
|
|
|
#include "nimbase.h"
|
|
#include <sys/types.h>
|
|
#include <pthread.h>
|
|
#include <string.h>
|
|
#undef LANGUAGE_C
|
|
#undef MIPSEB
|
|
#undef MIPSEL
|
|
#undef PPC
|
|
#undef R3000
|
|
#undef R4000
|
|
#undef i386
|
|
#undef linux
|
|
#undef mips
|
|
#undef near
|
|
#undef far
|
|
#undef powerpc
|
|
#undef unix
|
|
#define nimfr_(x, y)
|
|
#define nimln_(x, y)
|
|
typedef struct tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ;
|
|
typedef struct NimStringDesc NimStringDesc;
|
|
typedef struct TGenericSeq TGenericSeq;
|
|
typedef struct TNimType TNimType;
|
|
typedef struct TNimNode TNimNode;
|
|
typedef struct tyObject_PageBufferscolonObjectType___nlkRekTd17649aI9az0ZyeXA tyObject_PageBufferscolonObjectType___nlkRekTd17649aI9az0ZyeXA;
|
|
typedef struct tyObject_Deque__jgbFN19cKRHXSTHUNWRCb4Q tyObject_Deque__jgbFN19cKRHXSTHUNWRCb4Q;
|
|
typedef struct tySequence__KdGbg2Gmt5q0JC16Wfi5Zg tySequence__KdGbg2Gmt5q0JC16Wfi5Zg;
|
|
typedef struct tyObject_FuturecolonObjectType___GXFSekg1U8JRoedGa2vBSA tyObject_FuturecolonObjectType___GXFSekg1U8JRoedGa2vBSA;
|
|
typedef struct tyObject_PageSpan__OQhERc4ItQI9bBgR7u8roHQ tyObject_PageSpan__OQhERc4ItQI9bBgR7u8roHQ;
|
|
typedef struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g;
|
|
typedef struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w;
|
|
typedef struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ;
|
|
typedef struct tyObject_GcStack__7fytPA5bBsob6See21YMRA tyObject_GcStack__7fytPA5bBsob6See21YMRA;
|
|
typedef struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg;
|
|
typedef struct tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ;
|
|
typedef struct tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg;
|
|
typedef struct tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw;
|
|
typedef struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA;
|
|
typedef struct tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw;
|
|
typedef struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw;
|
|
typedef struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg;
|
|
typedef struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyTuple__ujsjpB2O9cjj3uDHsXbnSzg;
|
|
typedef struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg;
|
|
typedef struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ;
|
|
typedef struct tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg;
|
|
typedef struct tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw;
|
|
typedef struct tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg;
|
|
struct TGenericSeq {NI len;
|
|
NI reserved;
|
|
};
|
|
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
|
|
};
|
|
struct tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ {NI consumedTo;
|
|
NI writtenTo;
|
|
NimStringDesc** data;
|
|
};
|
|
typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A;
|
|
typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ;
|
|
typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op);
|
|
typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p);
|
|
struct TNimType {NI size;
|
|
tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind;
|
|
tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags;
|
|
TNimType* base;
|
|
TNimNode* node;
|
|
void* finalizer;
|
|
tyProc__ojoeKfW4VYIm36I9cpDTQIg marker;
|
|
tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy;
|
|
NCSTRING name;
|
|
TNimType* nextType;
|
|
NI instances;
|
|
NI sizes;
|
|
};
|
|
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
|
|
struct TNimNode {tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
|
|
NI offset;
|
|
TNimType* typ;
|
|
NCSTRING name;
|
|
NI len;
|
|
TNimNode** sons;
|
|
};
|
|
struct tyObject_Deque__jgbFN19cKRHXSTHUNWRCb4Q {tySequence__KdGbg2Gmt5q0JC16Wfi5Zg* data;
|
|
NI head;
|
|
NI tail;
|
|
NI count;
|
|
NI mask;
|
|
};
|
|
struct tyObject_PageBufferscolonObjectType___nlkRekTd17649aI9az0ZyeXA {NI pageSize;
|
|
NI maxBufferedBytes;
|
|
tyObject_Deque__jgbFN19cKRHXSTHUNWRCb4Q queue;
|
|
tyObject_FuturecolonObjectType___GXFSekg1U8JRoedGa2vBSA* waitingReader;
|
|
tyObject_FuturecolonObjectType___GXFSekg1U8JRoedGa2vBSA* waitingWriter;
|
|
NIM_BOOL eofReached;
|
|
NI fauxEofPos;
|
|
};
|
|
struct tyObject_PageSpan__OQhERc4ItQI9bBgR7u8roHQ {NU8* startAddr;
|
|
NU8* endAddr;
|
|
};
|
|
struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g {NI refcount;
|
|
TNimType* typ;
|
|
};
|
|
struct tyObject_GcStack__7fytPA5bBsob6See21YMRA {void* bottom;
|
|
};
|
|
struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w {NI len;
|
|
NI cap;
|
|
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d;
|
|
};
|
|
typedef tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* tyArray__SiRwrEKZdLgxqz9a9aoVBglg[512];
|
|
typedef NU32 tyArray__BHbOSqU1t9b3Gt7K2c6fQig[24];
|
|
typedef tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* tyArray__N1u1nqOgmuJN9cSZrnMHgOQ[32];
|
|
typedef tyArray__N1u1nqOgmuJN9cSZrnMHgOQ tyArray__B6durA4ZCi1xjJvRtyYxMg[24];
|
|
typedef tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* tyArray__lh2A89ahMmYg9bCmpVaplLbA[256];
|
|
struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA {tyArray__lh2A89ahMmYg9bCmpVaplLbA data;
|
|
};
|
|
typedef tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* tyArray__0aOLqZchNi8nWtMTi8ND8w[2];
|
|
struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw {tyArray__0aOLqZchNi8nWtMTi8ND8w link;
|
|
NI key;
|
|
NI upperBound;
|
|
NI level;
|
|
};
|
|
struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg {
|
|
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* Field0;
|
|
NI Field1;
|
|
};
|
|
typedef tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyArray__LzOv2eCDGiceMKQstCLmhw[30];
|
|
struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg {NI len;
|
|
tyArray__LzOv2eCDGiceMKQstCLmhw chunks;
|
|
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg* next;
|
|
};
|
|
struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg {NI minLargeObj;
|
|
NI maxLargeObj;
|
|
tyArray__SiRwrEKZdLgxqz9a9aoVBglg freeSmallChunks;
|
|
NU32 flBitmap;
|
|
tyArray__BHbOSqU1t9b3Gt7K2c6fQig slBitmap;
|
|
tyArray__B6durA4ZCi1xjJvRtyYxMg matrix;
|
|
tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw* llmem;
|
|
NI currMem;
|
|
NI maxMem;
|
|
NI freeMem;
|
|
NI occ;
|
|
NI lastSize;
|
|
tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA chunkStarts;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* root;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* deleted;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* last;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* freeAvlNodes;
|
|
NIM_BOOL locked;
|
|
NIM_BOOL blockChunkSizeIncrease;
|
|
NI nextChunkSize;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw bottomData;
|
|
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg heapLinks;
|
|
NI allocCounter;
|
|
NI deallocCounter;
|
|
};
|
|
struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg {NI stackScans;
|
|
NI cycleCollections;
|
|
NI maxThreshold;
|
|
NI maxStackSize;
|
|
NI maxStackCells;
|
|
NI cycleTableSize;
|
|
NI64 maxPause;
|
|
};
|
|
struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ {NI counter;
|
|
NI max;
|
|
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* head;
|
|
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg** data;
|
|
};
|
|
typedef long tyArray__xDUyu9aScDpt0JZLU6q9aEZQ[5];
|
|
struct tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw {tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* head;
|
|
tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* tail;
|
|
pthread_mutex_t lock;
|
|
};
|
|
struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ {tyObject_GcStack__7fytPA5bBsob6See21YMRA stack;
|
|
NI cycleThreshold;
|
|
NI zctThreshold;
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w zct;
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w decStack;
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tempStack;
|
|
NI recGcLock;
|
|
tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg region;
|
|
tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg stat;
|
|
tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ marked;
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w additionalRoots;
|
|
tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw toDispose;
|
|
NI gcThreadId;
|
|
};
|
|
struct tySequence__KdGbg2Gmt5q0JC16Wfi5Zg { TGenericSeq Sup; tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ* data[SEQ_DECL_SIZE];};N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
|
|
N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op);
|
|
static N_NIMCALL(void, Marker_tyRef__W6ZZm7Qu4jFzJzhETwbSPQ)(void* p, NI op);
|
|
static N_NIMCALL(void, Marker_tyRef__DCqn8KV9bsuBtqFpbSyUeZw)(void* p, NI op);
|
|
static N_INLINE(NI, len__MrQWlYbfVm0XaJfmc9aZLBAdeques)(tyObject_Deque__jgbFN19cKRHXSTHUNWRCb4Q* deq);
|
|
static N_INLINE(tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ*, peekLast__Gwh9bm2tTajmx9a7ALX0gUlw_2deques)(tyObject_Deque__jgbFN19cKRHXSTHUNWRCb4Q* deq);
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ*, addWritablePage__nH5IKRU2njRu33QqrvR8LA)(tyObject_PageBufferscolonObjectType___nlkRekTd17649aI9az0ZyeXA* buffers, NI pageSize);
|
|
N_LIB_PRIVATE N_NIMCALL(void, trackWrittenToEnd__GWGiU9bI9c9aW3pgT6k6XKGDQ)(tyObject_PageBufferscolonObjectType___nlkRekTd17649aI9az0ZyeXA* buffers);
|
|
N_LIB_PRIVATE N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc**, new__YtDyrzo9bElpgki4pyc9c8tQ)(void);
|
|
N_NIMCALL(NimStringDesc*, mnewString)(NI len);
|
|
static N_INLINE(void, asgnRef)(void** dest, void* src);
|
|
static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y);
|
|
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr);
|
|
static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y);
|
|
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y);
|
|
static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
N_LIB_PRIVATE N_NOINLINE(void, addZCT__Y66tOYFjgwJ0k4aLz4bc0Q)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
N_LIB_PRIVATE N_NIMCALL(void, addLast__QgyvqxP2PPbb2Dgj719apQA)(tyObject_Deque__jgbFN19cKRHXSTHUNWRCb4Q* deq, tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ* item);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, pageLen__JN4OYF39aRJTVb1TB9a138sQ)(tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ* page);
|
|
static N_INLINE(tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ**, X5BX5D___Kf9cUw9bgoqAIxyeWCYtqJSAdeques)(tyObject_Deque__jgbFN19cKRHXSTHUNWRCb4Q* deq, NI i);
|
|
static N_INLINE(void, nimZeroMem)(void* p, NI size);
|
|
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size);
|
|
static N_INLINE(tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ*, popFirst__524YmKr9bVtaV2ub263Iq2Qdeques)(tyObject_Deque__jgbFN19cKRHXSTHUNWRCb4Q* deq);
|
|
N_LIB_PRIVATE N_NIMCALL(void, reset__Lb6h7ccGORpuJXBnb2e89cA)(tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ** obj);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, totalBufferedBytes__mdU66sjNJeignzqwwKZMlA)(tyObject_PageBufferscolonObjectType___nlkRekTd17649aI9az0ZyeXA* buffers);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, stringFromBytes__KAMCwKfJVNBtn6FkmdIXpQ)(void* src, NI srcLen);
|
|
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size);
|
|
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, nextAlignedSize__n1kypo4TURDF3Qd0HIsIbg)(NI minSize, NI pageSize);
|
|
N_LIB_PRIVATE TNimType NTI__z9bHBjpnro9bY8uVepnrQtXQ_;
|
|
extern TNimType NTI__hLlQjbV9bLNq5PFxYcqacsA_;
|
|
extern TNimType NTI__H9bY9c7U839afi7vlj9crbfr5Q_;
|
|
N_LIB_PRIVATE TNimType NTI__W6ZZm7Qu4jFzJzhETwbSPQ_;
|
|
N_LIB_PRIVATE TNimType NTI__nlkRekTd17649aI9az0ZyeXA_;
|
|
extern TNimType NTI__jgbFN19cKRHXSTHUNWRCb4Q_;
|
|
extern TNimType NTI__wrhe6hYHoM2gc8EiW0lE6Q_;
|
|
extern TNimType NTI__VaVACK0bpYmqIQ0mKcHfQQ_;
|
|
N_LIB_PRIVATE TNimType NTI__DCqn8KV9bsuBtqFpbSyUeZw_;
|
|
N_LIB_PRIVATE TNimType NTI__OQhERc4ItQI9bBgR7u8roHQ_;
|
|
extern TNimType NTI__cG1a2XAxsP28AUq2q9aXnNg_;
|
|
extern TNimType* nimTypeRoot;
|
|
extern NIM_THREADVAR tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q;
|
|
|
|
#line 63 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NU8*, readableStart__yPQ29aCfNmEAalG9aPX7MzZA)(tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ* page) { NU8* result; NI bytesX60gensym27831272_; NI TM__eXQvBPq9c1e9a9cnoIGLerKnQ_2; result = (NU8*)0;
|
|
#line 64 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 40 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ptrops.nim"
|
|
|
|
#line 40 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ptrops.nim"
|
|
if (nimMulInt(((NI) ((*page).consumedTo)), ((NI) 1), &TM__eXQvBPq9c1e9a9cnoIGLerKnQ_2)) { raiseOverflow(); }; bytesX60gensym27831272_ = (NI)(TM__eXQvBPq9c1e9a9cnoIGLerKnQ_2);
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ptrops.nim"
|
|
if ((NU)(((NI) 0)) >= (NU)((*(*page).data) ? (*(*page).data)->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*(*page).data) ? (*(*page).data)->Sup.len : 0)-1); } result = ((NU8*) (((void*) ((NU)((NU64)(((NU) (ptrdiff_t) (((void*) (((NU8*) ((&(*(*page).data)->data[((NI) 0)])))))))) + (NU64)(((NU) (bytesX60gensym27831272_)))))))); return result;}
|
|
static N_NIMCALL(void, Marker_tyRef__W6ZZm7Qu4jFzJzhETwbSPQ)(void* p, NI op) {
|
|
tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ* a;
|
|
a = (tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ*)p;
|
|
nimGCvisit((void*)(*a).data, op);}
|
|
static N_NIMCALL(void, Marker_tyRef__DCqn8KV9bsuBtqFpbSyUeZw)(void* p, NI op) {
|
|
tyObject_PageBufferscolonObjectType___nlkRekTd17649aI9az0ZyeXA* a;
|
|
a = (tyObject_PageBufferscolonObjectType___nlkRekTd17649aI9az0ZyeXA*)p;
|
|
nimGCvisit((void*)(*a).queue.data, op); nimGCvisit((void*)(*a).waitingReader, op); nimGCvisit((void*)(*a).waitingWriter, op);}
|
|
|
|
#line 183 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI, nextAlignedSize__n1kypo4TURDF3Qd0HIsIbg)(NI minSize, NI pageSize) { NI result; result = (NI)0;
|
|
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
result = ((NI) ((NI)((NI)((NI)(((NI) (minSize)) / ((NI) (pageSize))) + ((NI) 1)) * ((NI) (pageSize))))); return result;}
|
|
|
|
#line 91 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/deques.nim"
|
|
static N_INLINE(NI, len__MrQWlYbfVm0XaJfmc9aZLBAdeques)(tyObject_Deque__jgbFN19cKRHXSTHUNWRCb4Q* deq) { NI result; result = (NI)0;
|
|
#line 93 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/deques.nim"
|
|
result = (*deq).count; return result;}
|
|
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/deques.nim"
|
|
static N_INLINE(tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ*, peekLast__Gwh9bm2tTajmx9a7ALX0gUlw_2deques)(tyObject_Deque__jgbFN19cKRHXSTHUNWRCb4Q* deq) { tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ* result; NI TM__eXQvBPq9c1e9a9cnoIGLerKnQ_6; result = (tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ*)0;
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/deques.nim"
|
|
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/deques.nim"
|
|
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/deques.nim"
|
|
if (nimSubInt((*deq).tail, ((NI) 1), &TM__eXQvBPq9c1e9a9cnoIGLerKnQ_6)) { raiseOverflow(); }; if ((NU)((NI)((NI)(TM__eXQvBPq9c1e9a9cnoIGLerKnQ_6) & (*deq).mask)) >= (NU)((*deq).data ? (*deq).data->Sup.len : 0)){ raiseIndexError2((NI)((NI)(TM__eXQvBPq9c1e9a9cnoIGLerKnQ_6) & (*deq).mask),((*deq).data ? (*deq).data->Sup.len : 0)-1); } result = (*deq).data->data[(NI)((NI)(TM__eXQvBPq9c1e9a9cnoIGLerKnQ_6) & (*deq).mask)]; return result;}
|
|
|
|
#line 137 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, trackWrittenToEnd__GWGiU9bI9c9aW3pgT6k6XKGDQ)(tyObject_PageBufferscolonObjectType___nlkRekTd17649aI9az0ZyeXA* buffers) {
|
|
#line 138 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
{ NI T3_; tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ* page;
|
|
#line 138 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 138 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 138 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
T3_ = (NI)0; T3_ = len__MrQWlYbfVm0XaJfmc9aZLBAdeques((&(*buffers).queue)); if (!(((NI) 0) < T3_)) goto LA4_;
|
|
|
|
#line 139 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 139 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
page = peekLast__Gwh9bm2tTajmx9a7ALX0gUlw_2deques((&(*buffers).queue));
|
|
#line 140 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 140 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
(*page).writtenTo = ((NI) (((*(*page).data) ? (*(*page).data)->Sup.len : 0))); }
|
|
LA4_: ;
|
|
}
|
|
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y) { NI result; result = (NI)0;
|
|
#line 426 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
|
|
#line 430 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
result = ((NI) ((NU)((NU64)(((NU) (x))) + (NU64)(((NU) (y)))))); return result;}
|
|
|
|
#line 182 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
(*c).refcount = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem((*c).refcount, ((NI) 8));}
|
|
|
|
#line 436 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y) { NI result; result = (NI)0;
|
|
#line 437 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
|
|
#line 441 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
result = ((NI) ((NU)((NU64)(((NU) (x))) - (NU64)(((NU) (y)))))); return result;}
|
|
|
|
#line 128 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr) { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* result; NI T1_; result = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T1_ = (NI)0; T1_ = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system(((NI) (ptrdiff_t) (usr)), ((NI) 16)); result = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (T1_)); return result;}
|
|
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
|
|
static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y) { NIM_BOOL result; result = (NIM_BOOL)0;
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
|
|
result = ((NU64)(((NU) (x))) < (NU64)(((NU) (y)))); return result;}
|
|
|
|
#line 194 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
addZCT__Y66tOYFjgwJ0k4aLz4bc0Q((&gch__IcYaEuuWivYAS86vFMTS3Q.zct), c);
|
|
}
|
|
|
|
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
(*c).refcount = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system((*c).refcount, ((NI) 8));
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
{ NIM_BOOL T3_;
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem((*c).refcount, ((NI) 8)); if (!T3_) goto LA4_;
|
|
|
|
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system(c);
|
|
}
|
|
LA4_: ;
|
|
}
|
|
|
|
#line 235 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, asgnRef)(void** dest, void* src) {
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
{ tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T5_;
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
if (!!((src == NIM_NIL))) goto LA3_;
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T5_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T5_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(src);
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
incRef__AT1eRuflKWyTTBdLjEDZbg_3system(T5_);
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
{ tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T10_;
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
if (!!(((*dest) == NIM_NIL))) goto LA8_;
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T10_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T10_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem((*dest));
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
decRef__AT1eRuflKWyTTBdLjEDZbgsystem(T10_);
|
|
}
|
|
LA8_: ;
|
|
|
|
#line 241 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
(*dest) = src;}
|
|
|
|
#line 158 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ*, addWritablePage__nH5IKRU2njRu33QqrvR8LA)(tyObject_PageBufferscolonObjectType___nlkRekTd17649aI9az0ZyeXA* buffers, NI pageSize) { tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ* result; tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ* T1_; NimStringDesc** resX60gensym27995002_; result = (tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ*)0;
|
|
#line 159 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 159 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
trackWrittenToEnd__GWGiU9bI9c9aW3pgT6k6XKGDQ(buffers);
|
|
|
|
#line 160 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
T1_ = (tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ*)0; T1_ = (tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ*) newObj((&NTI__W6ZZm7Qu4jFzJzhETwbSPQ_), sizeof(tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ));
|
|
#line 133 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 133 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
resX60gensym27995002_ = new__YtDyrzo9bElpgki4pyc9c8tQ();
|
|
#line 155 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 155 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 155 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
asgnRef((void**) (&(*resX60gensym27995002_)), mnewString(pageSize)); asgnRef((void**) (&(*T1_).data), resX60gensym27995002_); (*T1_).writtenTo = ((NI) 0); result = T1_;
|
|
#line 161 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 161 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
addLast__QgyvqxP2PPbb2Dgj719apQA((&(*buffers).queue), result);
|
|
return result;}
|
|
|
|
#line 163 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ*, getWritablePage__V6AcpNvgOulTEnr8xAy0jg)(tyObject_PageBufferscolonObjectType___nlkRekTd17649aI9az0ZyeXA* buffers, NI preferredSize) { tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ* result;{ result = (tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ*)0;
|
|
#line 165 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
{ NI T3_; tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ* lastPage;
|
|
#line 165 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 165 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 165 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
T3_ = (NI)0; T3_ = len__MrQWlYbfVm0XaJfmc9aZLBAdeques((&(*buffers).queue)); if (!(((NI) 0) < T3_)) goto LA4_;
|
|
|
|
#line 166 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 166 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
lastPage = peekLast__Gwh9bm2tTajmx9a7ALX0gUlw_2deques((&(*buffers).queue));
|
|
#line 167 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
{
|
|
#line 167 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 167 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
if (!(((NI) ((*lastPage).writtenTo)) < ((*(*lastPage).data) ? (*(*lastPage).data)->Sup.len : 0))) goto LA8_;
|
|
|
|
#line 168 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 168 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
result = lastPage; goto BeforeRet_;
|
|
}
|
|
LA8_: ;
|
|
}
|
|
LA4_: ;
|
|
|
|
#line 170 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 170 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 170 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
result = addWritablePage__nH5IKRU2njRu33QqrvR8LA(buffers, preferredSize); goto BeforeRet_;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 66 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NU8*, readableEnd__yPQ29aCfNmEAalG9aPX7MzZA_2)(tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ* page) { NU8* result; NI bytesX60gensym27840024_; result = (NU8*)0;
|
|
#line 67 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 40 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ptrops.nim"
|
|
|
|
#line 40 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ptrops.nim"
|
|
bytesX60gensym27840024_ = (NI)(((NI) ((*page).writtenTo)) * ((NI) 1));
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ptrops.nim"
|
|
result = ((NU8*) (((void*) ((NU)((NU64)(((NU) (ptrdiff_t) (((void*) (((NU8*) ((&(*(*page).data)->data[((NI) 0)])))))))) + (NU64)(((NU) (bytesX60gensym27840024_)))))))); return result;}
|
|
|
|
#line 75 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI, pageLen__JN4OYF39aRJTVb1TB9a138sQ)(tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ* page) { NI result; result = (NI)0;
|
|
#line 76 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 76 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
result = ((NI) ((NI)(((NI) ((*page).writtenTo)) - ((NI) ((*page).consumedTo))))); return result;}
|
|
|
|
#line 124 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/deques.nim"
|
|
static N_INLINE(tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ**, X5BX5D___Kf9cUw9bgoqAIxyeWCYtqJSAdeques)(tyObject_Deque__jgbFN19cKRHXSTHUNWRCb4Q* deq, NI i) { tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ** result; NI TM__eXQvBPq9c1e9a9cnoIGLerKnQ_7;{ result = (tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ**)0;
|
|
#line 136 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/deques.nim"
|
|
|
|
#line 136 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/deques.nim"
|
|
|
|
#line 136 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/deques.nim"
|
|
|
|
#line 136 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/deques.nim"
|
|
if (nimAddInt((*deq).head, ((NI) (i)), &TM__eXQvBPq9c1e9a9cnoIGLerKnQ_7)) { raiseOverflow(); }; if ((NU)((NI)((NI)(TM__eXQvBPq9c1e9a9cnoIGLerKnQ_7) & (*deq).mask)) >= (NU)((*deq).data ? (*deq).data->Sup.len : 0)){ raiseIndexError2((NI)((NI)(TM__eXQvBPq9c1e9a9cnoIGLerKnQ_7) & (*deq).mask),((*deq).data ? (*deq).data->Sup.len : 0)-1); } result = &(*deq).data->data[(NI)((NI)(TM__eXQvBPq9c1e9a9cnoIGLerKnQ_7) & (*deq).mask)]; goto BeforeRet_;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 261 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI, totalBufferedBytes__mdU66sjNJeignzqwwKZMlA)(tyObject_PageBufferscolonObjectType___nlkRekTd17649aI9az0ZyeXA* buffers) { NI result; result = (NI)0; { NI i; NI colontmp_; NI i_2; i = (NI)0; colontmp_ = (NI)0;
|
|
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
colontmp_ = len__MrQWlYbfVm0XaJfmc9aZLBAdeques((&(*buffers).queue));
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
i_2 = ((NI) 0); {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ** T4_; NI T5_;
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(i_2 < colontmp_)) goto LA3;
|
|
|
|
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
i = i_2;
|
|
#line 263 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 263 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 263 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 263 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
T4_ = (tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ**)0; T4_ = X5BX5D___Kf9cUw9bgoqAIxyeWCYtqJSAdeques((&(*buffers).queue), ((NI) (i)));
|
|
#line 263 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
T5_ = (NI)0; T5_ = pageLen__JN4OYF39aRJTVb1TB9a138sQ((*T4_)); result += T5_;
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
i_2 += ((NI) 1); } LA3: ;
|
|
}
|
|
}
|
|
return result;}
|
|
|
|
#line 22 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size) { void* T1_;
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
T1_ = (void*)0; T1_ = memset(a, v, ((size_t) (size)));}
|
|
|
|
#line 33 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimZeroMem)(void* p, NI size) {
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory(p, ((int) 0), size);
|
|
}
|
|
|
|
#line 369 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/deques.nim"
|
|
static N_INLINE(tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ*, popFirst__524YmKr9bVtaV2ub263Iq2Qdeques)(tyObject_Deque__jgbFN19cKRHXSTHUNWRCb4Q* deq) { tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ* result; NI TM__eXQvBPq9c1e9a9cnoIGLerKnQ_8; NI TM__eXQvBPq9c1e9a9cnoIGLerKnQ_9; result = (tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ*)0;
|
|
#line 389 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/deques.nim"
|
|
if (nimSubInt((*deq).count, ((NI) 1), &TM__eXQvBPq9c1e9a9cnoIGLerKnQ_8)) { raiseOverflow(); }; (*deq).count = (NI)(TM__eXQvBPq9c1e9a9cnoIGLerKnQ_8);
|
|
#line 390 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/deques.nim"
|
|
if ((NU)((*deq).head) >= (NU)((*deq).data ? (*deq).data->Sup.len : 0)){ raiseIndexError2((*deq).head,((*deq).data ? (*deq).data->Sup.len : 0)-1); } result = (*deq).data->data[(*deq).head];
|
|
#line 391 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/deques.nim"
|
|
if ((NU)((*deq).head) >= (NU)((*deq).data ? (*deq).data->Sup.len : 0)){ raiseIndexError2((*deq).head,((*deq).data ? (*deq).data->Sup.len : 0)-1); }
|
|
#line 391 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/deques.nim"
|
|
reset__Lb6h7ccGORpuJXBnb2e89cA(&(*deq).data->data[(*deq).head]);
|
|
|
|
#line 392 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/deques.nim"
|
|
|
|
#line 392 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/deques.nim"
|
|
|
|
#line 392 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/deques.nim"
|
|
if (nimAddInt((*deq).head, ((NI) 1), &TM__eXQvBPq9c1e9a9cnoIGLerKnQ_9)) { raiseOverflow(); }; (*deq).head = (NI)((NI)(TM__eXQvBPq9c1e9a9cnoIGLerKnQ_9) & (*deq).mask); return result;}
|
|
|
|
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_PageSpan__OQhERc4ItQI9bBgR7u8roHQ, obtainReadableSpan__iFOawn8H01gC77IuQnjxrA)(tyObject_PageBufferscolonObjectType___nlkRekTd17649aI9az0ZyeXA* buffers, NI* currentSpanEndPos) { tyObject_PageSpan__OQhERc4ItQI9bBgR7u8roHQ result; tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ* page; tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ** T6_; NI unconsumedLen; NU8* baseAddr; NU8* startAddr; NI bytesX60gensym27875004_; NI usableLen; NI bytesX60gensym27890016_;{ nimZeroMem((void*)(&result), sizeof(tyObject_PageSpan__OQhERc4ItQI9bBgR7u8roHQ));
|
|
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
{ NI T3_;
|
|
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
T3_ = (NI)0; T3_ = len__MrQWlYbfVm0XaJfmc9aZLBAdeques((&(*buffers).queue)); if (!(T3_ == ((NI) 0))) goto LA4_;
|
|
|
|
#line 85 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 85 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 85 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
nimZeroMem((void*)(&result), sizeof(tyObject_PageSpan__OQhERc4ItQI9bBgR7u8roHQ)); goto BeforeRet_;
|
|
}
|
|
LA4_: ;
|
|
|
|
#line 87 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 87 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 87 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
T6_ = (tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ**)0; T6_ = X5BX5D___Kf9cUw9bgoqAIxyeWCYtqJSAdeques((&(*buffers).queue), ((NI) 0)); page = (*T6_);
|
|
#line 88 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 88 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
unconsumedLen = (NI)(((NI) ((*page).writtenTo)) - ((NI) ((*page).consumedTo)));
|
|
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
{
|
|
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
if (!(unconsumedLen == ((NI) 0))) goto LA9_;
|
|
|
|
#line 90 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
{ NI T13_; tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ* T16_; tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ** T17_;
|
|
#line 90 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 90 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 90 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
T13_ = (NI)0; T13_ = len__MrQWlYbfVm0XaJfmc9aZLBAdeques((&(*buffers).queue)); if (!(((NI) 1) < T13_)) goto LA14_;
|
|
|
|
#line 91 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 91 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 91 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
T16_ = (tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ*)0; T16_ = popFirst__524YmKr9bVtaV2ub263Iq2Qdeques((&(*buffers).queue)); (void)(T16_);
|
|
|
|
#line 92 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 92 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 92 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
T17_ = (tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ**)0; T17_ = X5BX5D___Kf9cUw9bgoqAIxyeWCYtqJSAdeques((&(*buffers).queue), ((NI) 0)); page = (*T17_);
|
|
#line 93 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 93 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
unconsumedLen = (NI)(((NI) ((*page).writtenTo)) - ((NI) ((*page).consumedTo))); }
|
|
goto LA11_;
|
|
LA14_: ;
|
|
{
|
|
#line 95 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 95 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 95 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
nimZeroMem((void*)(&result), sizeof(tyObject_PageSpan__OQhERc4ItQI9bBgR7u8roHQ)); goto BeforeRet_;
|
|
}
|
|
LA11_: ;
|
|
}
|
|
LA9_: ;
|
|
|
|
#line 98 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
baseAddr = ((NU8*) ((&(*(*page).data)->data[((NI) 0)])));
|
|
#line 99 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 40 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ptrops.nim"
|
|
|
|
#line 40 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ptrops.nim"
|
|
bytesX60gensym27875004_ = (NI)(((NI) ((*page).consumedTo)) * ((NI) 1));
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ptrops.nim"
|
|
startAddr = ((NU8*) (((void*) ((NU)((NU64)(((NU) (ptrdiff_t) (((void*) (baseAddr))))) + (NU64)(((NU) (bytesX60gensym27875004_))))))));
|
|
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
{ NI maxSize;
|
|
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
if (!!((((NI) ((*buffers).fauxEofPos)) == ((NI) 0)))) goto LA21_;
|
|
|
|
#line 102 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 102 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
maxSize = (NI)(((NI) ((*buffers).fauxEofPos)) - ((NI) ((*currentSpanEndPos))));
|
|
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
{
|
|
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
if (!(maxSize < unconsumedLen)) goto LA25_;
|
|
usableLen = maxSize; }
|
|
goto LA23_;
|
|
LA25_: ;
|
|
{ usableLen = unconsumedLen; }
|
|
LA23_: ;
|
|
}
|
|
goto LA19_;
|
|
LA21_: ;
|
|
{ usableLen = unconsumedLen; }
|
|
LA19_: ;
|
|
|
|
#line 110 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
(*page).consumedTo += ((NI) (usableLen));
|
|
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
(*currentSpanEndPos) += ((NI) (usableLen)); nimZeroMem((void*)(&result), sizeof(tyObject_PageSpan__OQhERc4ItQI9bBgR7u8roHQ)); result.startAddr = startAddr;
|
|
#line 40 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ptrops.nim"
|
|
|
|
#line 40 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ptrops.nim"
|
|
bytesX60gensym27890016_ = (NI)(usableLen * ((NI) 1));
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ptrops.nim"
|
|
result.endAddr = ((NU8*) (((void*) ((NU)((NU64)(((NU) (ptrdiff_t) (((void*) (startAddr))))) + (NU64)(((NU) (bytesX60gensym27890016_)))))))); }BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 265 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, canAcceptWrite__h9blwvDorZhRTZktphg9cUAw)(tyObject_PageBufferscolonObjectType___nlkRekTd17649aI9az0ZyeXA* buffers, NI writeSize) { NIM_BOOL result; NIM_BOOL T1_; NIM_BOOL T2_; NIM_BOOL T3_; NI T5_; NI T8_; result = (NIM_BOOL)0;
|
|
#line 268 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 268 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
T1_ = (NIM_BOOL)0;
|
|
#line 267 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
T2_ = (NIM_BOOL)0;
|
|
#line 266 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = NIM_TRUE; if (T3_) goto LA4_;
|
|
|
|
#line 267 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 267 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 267 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
T5_ = (NI)0; T5_ = len__MrQWlYbfVm0XaJfmc9aZLBAdeques((&(*buffers).queue)); T3_ = (T5_ == ((NI) 0)); LA4_: ;
|
|
T2_ = T3_; if (T2_) goto LA6_;
|
|
|
|
#line 268 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
T2_ = (((NI) ((*buffers).maxBufferedBytes)) == ((NI) 0)); LA6_: ;
|
|
T1_ = T2_; if (T1_) goto LA7_;
|
|
|
|
#line 269 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 269 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 269 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
T8_ = (NI)0; T8_ = totalBufferedBytes__mdU66sjNJeignzqwwKZMlA(buffers); T1_ = (((NI) (T8_)) < ((NI) ((*buffers).maxBufferedBytes))); LA7_: ;
|
|
result = T1_; return result;}
|
|
|
|
#line 11 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size) { void* T1_;
|
|
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
T1_ = (void*)0; T1_ = memcpy(dest, source, ((size_t) (size)));}
|
|
|
|
#line 2112 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size) {
|
|
#line 2113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
nimCopyMem(dest, source, size);
|
|
}
|
|
|
|
#line 179 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, stringFromBytes__KAMCwKfJVNBtn6FkmdIXpQ)(void* src, NI srcLen) { NimStringDesc* result; result = (NimStringDesc*)0;
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
result = mnewString(srcLen);
|
|
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&result->data[((NI) 0)]))), src, srcLen);
|
|
return result;}
|
|
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendUnbufferedWrite__OYfobHRxXSDOzMPaI3jhGg)(tyObject_PageBufferscolonObjectType___nlkRekTd17649aI9az0ZyeXA* buffers, void* src, NI srcLen) {{
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
{ NI T3_; tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ* T6_; NimStringDesc** resX60gensym28030158_;
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
T3_ = (NI)0; T3_ = len__MrQWlYbfVm0XaJfmc9aZLBAdeques((&(*buffers).queue)); if (!(T3_ == ((NI) 0))) goto LA4_;
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
T6_ = (tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ*)0; T6_ = (tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ*) newObj((&NTI__W6ZZm7Qu4jFzJzhETwbSPQ_), sizeof(tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ));
|
|
#line 133 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 133 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
resX60gensym28030158_ = new__YtDyrzo9bElpgki4pyc9c8tQ();
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
asgnRef((void**) (&(*resX60gensym28030158_)), stringFromBytes__KAMCwKfJVNBtn6FkmdIXpQ(src, srcLen)); asgnRef((void**) (&(*T6_).data), resX60gensym28030158_); (*T6_).writtenTo = srcLen;
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
addLast__QgyvqxP2PPbb2Dgj719apQA((&(*buffers).queue), T6_);
|
|
}
|
|
goto LA1_;
|
|
LA4_: ;
|
|
{ void* src_2; NI srcLen_2; tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ* lastPage; NI lastPageLen; NI unusedBytes; NI nextPageSize; tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ* nextPage;
|
|
#line 195 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
src_2 = src;
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
srcLen_2 = srcLen;
|
|
#line 197 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 197 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
lastPage = peekLast__Gwh9bm2tTajmx9a7ALX0gUlw_2deques((&(*buffers).queue));
|
|
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
lastPageLen = ((*(*lastPage).data) ? (*(*lastPage).data)->Sup.len : 0);
|
|
#line 199 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 199 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
unusedBytes = (NI)(lastPageLen - ((NI) ((*lastPage).writtenTo)));
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
{ NIM_CHAR* unusedBytesStart; NI bytesX60gensym28040003_;
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
if (!(((NI) 0) < unusedBytes)) goto LA10_;
|
|
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 40 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ptrops.nim"
|
|
|
|
#line 40 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ptrops.nim"
|
|
bytesX60gensym28040003_ = (NI)(((NI) ((*lastPage).writtenTo)) * ((NI) 1));
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ptrops.nim"
|
|
unusedBytesStart = ((NIM_CHAR*) (((void*) ((NU)((NU64)(((NU) (ptrdiff_t) (((void*) ((&(*(*lastPage).data)->data[((NI) 0)])))))) + (NU64)(((NU) (bytesX60gensym28040003_))))))));
|
|
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
{
|
|
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
if (!(((NI) (srcLen_2)) <= unusedBytes)) goto LA14_;
|
|
|
|
#line 204 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 204 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) (unusedBytesStart)), src_2, srcLen_2);
|
|
|
|
#line 205 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
(*lastPage).writtenTo += srcLen_2;
|
|
#line 206 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
goto BeforeRet_;
|
|
}
|
|
goto LA12_;
|
|
LA14_: ;
|
|
{
|
|
#line 208 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 208 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) (unusedBytesStart)), src_2, ((NI) (unusedBytes)));
|
|
|
|
#line 209 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
(*lastPage).writtenTo = ((NI) (lastPageLen));
|
|
#line 210 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ptrops.nim"
|
|
src_2 = ((void*) ((NU)((NU64)(((NU) (ptrdiff_t) (src_2))) + (NU64)(((NU) (unusedBytes))))));
|
|
#line 211 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
srcLen_2 -= ((NI) (unusedBytes)); }
|
|
LA12_: ;
|
|
}
|
|
LA10_: ;
|
|
|
|
#line 213 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 213 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
nextPageSize = nextAlignedSize__n1kypo4TURDF3Qd0HIsIbg(srcLen_2, (*buffers).pageSize);
|
|
#line 214 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 214 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
nextPage = addWritablePage__nH5IKRU2njRu33QqrvR8LA(buffers, nextPageSize);
|
|
#line 216 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 216 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&(*(*nextPage).data)->data[((NI) 0)]))), src_2, srcLen_2);
|
|
|
|
#line 217 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
(*nextPage).writtenTo = srcLen_2; }
|
|
LA1_: ;
|
|
}BeforeRet_: ;
|
|
}
|
|
|
|
#line 142 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, trackWrittenTo__SmRspuv0X0V9bpfgvSS7HfA)(tyObject_PageBufferscolonObjectType___nlkRekTd17649aI9az0ZyeXA* buffers, NU8* spanHeadPos) {
|
|
#line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
{ NIM_BOOL T3_; NI T5_; tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ* topPage;
|
|
#line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
T3_ = (NIM_BOOL)0;
|
|
#line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
T3_ = !((buffers == NIM_NIL)); if (!(T3_)) goto LA4_;
|
|
|
|
#line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
T5_ = (NI)0; T5_ = len__MrQWlYbfVm0XaJfmc9aZLBAdeques((&(*buffers).queue)); T3_ = (((NI) 0) < T5_); LA4_: ;
|
|
if (!T3_) goto LA6_;
|
|
|
|
#line 144 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 144 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
topPage = peekLast__Gwh9bm2tTajmx9a7ALX0gUlw_2deques((&(*buffers).queue));
|
|
#line 145 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 145 "/home/runner/work/nim-waku/nim-waku/vendor/nim-faststreams/faststreams/buffers.nim"
|
|
|
|
#line 48 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ptrops.nim"
|
|
(*topPage).writtenTo = ((NI) ((NI)(((NI) ((NU)((NU64)(((NU) (ptrdiff_t) (((void*) (spanHeadPos))))) - (NU64)(((NU) (ptrdiff_t) (((void*) (((NU8*) ((&(*(*topPage).data)->data[((NI) 0)]))))))))))) / ((NI) 1)))); }
|
|
LA6_: ;
|
|
}
|
|
N_LIB_PRIVATE N_NIMCALL(void, faststreams_buffersDatInit000)(void) {
|
|
|
|
#line 999999 "generated_not_to_break_here"
|
|
static TNimNode* TM__eXQvBPq9c1e9a9cnoIGLerKnQ_3_3[3];
|
|
static TNimNode* TM__eXQvBPq9c1e9a9cnoIGLerKnQ_4_7[7];
|
|
static TNimNode* TM__eXQvBPq9c1e9a9cnoIGLerKnQ_5_2[2];
|
|
static TNimNode TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[15];NTI__z9bHBjpnro9bY8uVepnrQtXQ_.size = sizeof(tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ);
|
|
NTI__z9bHBjpnro9bY8uVepnrQtXQ_.kind = 18;
|
|
NTI__z9bHBjpnro9bY8uVepnrQtXQ_.base = 0;
|
|
NTI__z9bHBjpnro9bY8uVepnrQtXQ_.flags = 2;
|
|
NTI__z9bHBjpnro9bY8uVepnrQtXQ_.name = "Page";
|
|
NTI__z9bHBjpnro9bY8uVepnrQtXQ_.nextType = nimTypeRoot; nimTypeRoot=&NTI__z9bHBjpnro9bY8uVepnrQtXQ_;
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_3_3[0] = &TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[1];
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[1].kind = 1;
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[1].offset = offsetof(tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ, consumedTo);
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[1].typ = (&NTI__hLlQjbV9bLNq5PFxYcqacsA_);
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[1].name = "consumedTo";
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_3_3[1] = &TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[2];
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[2].kind = 1;
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[2].offset = offsetof(tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ, writtenTo);
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[2].typ = (&NTI__hLlQjbV9bLNq5PFxYcqacsA_);
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[2].name = "writtenTo";
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_3_3[2] = &TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[3];
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[3].kind = 1;
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[3].offset = offsetof(tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ, data);
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[3].typ = (&NTI__H9bY9c7U839afi7vlj9crbfr5Q_);
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[3].name = "data";
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[0].len = 3; TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[0].kind = 2; TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[0].sons = &TM__eXQvBPq9c1e9a9cnoIGLerKnQ_3_3[0];
|
|
NTI__z9bHBjpnro9bY8uVepnrQtXQ_.node = &TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[0];
|
|
NTI__W6ZZm7Qu4jFzJzhETwbSPQ_.size = sizeof(tyObject_Page__z9bHBjpnro9bY8uVepnrQtXQ*);
|
|
NTI__W6ZZm7Qu4jFzJzhETwbSPQ_.kind = 22;
|
|
NTI__W6ZZm7Qu4jFzJzhETwbSPQ_.base = (&NTI__z9bHBjpnro9bY8uVepnrQtXQ_);
|
|
NTI__W6ZZm7Qu4jFzJzhETwbSPQ_.flags = 2;
|
|
NTI__W6ZZm7Qu4jFzJzhETwbSPQ_.name = "PageRef";
|
|
NTI__W6ZZm7Qu4jFzJzhETwbSPQ_.nextType = nimTypeRoot; nimTypeRoot=&NTI__W6ZZm7Qu4jFzJzhETwbSPQ_;
|
|
NTI__W6ZZm7Qu4jFzJzhETwbSPQ_.marker = Marker_tyRef__W6ZZm7Qu4jFzJzhETwbSPQ;
|
|
NTI__nlkRekTd17649aI9az0ZyeXA_.size = sizeof(tyObject_PageBufferscolonObjectType___nlkRekTd17649aI9az0ZyeXA);
|
|
NTI__nlkRekTd17649aI9az0ZyeXA_.kind = 18;
|
|
NTI__nlkRekTd17649aI9az0ZyeXA_.base = 0;
|
|
NTI__nlkRekTd17649aI9az0ZyeXA_.name = "PageBuffers:ObjectType";
|
|
NTI__nlkRekTd17649aI9az0ZyeXA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__nlkRekTd17649aI9az0ZyeXA_;
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_4_7[0] = &TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[5];
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[5].kind = 1;
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[5].offset = offsetof(tyObject_PageBufferscolonObjectType___nlkRekTd17649aI9az0ZyeXA, pageSize);
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[5].typ = (&NTI__hLlQjbV9bLNq5PFxYcqacsA_);
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[5].name = "pageSize";
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_4_7[1] = &TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[6];
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[6].kind = 1;
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[6].offset = offsetof(tyObject_PageBufferscolonObjectType___nlkRekTd17649aI9az0ZyeXA, maxBufferedBytes);
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[6].typ = (&NTI__hLlQjbV9bLNq5PFxYcqacsA_);
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[6].name = "maxBufferedBytes";
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_4_7[2] = &TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[7];
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[7].kind = 1;
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[7].offset = offsetof(tyObject_PageBufferscolonObjectType___nlkRekTd17649aI9az0ZyeXA, queue);
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[7].typ = (&NTI__jgbFN19cKRHXSTHUNWRCb4Q_);
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[7].name = "queue";
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_4_7[3] = &TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[8];
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[8].kind = 1;
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[8].offset = offsetof(tyObject_PageBufferscolonObjectType___nlkRekTd17649aI9az0ZyeXA, waitingReader);
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[8].typ = (&NTI__wrhe6hYHoM2gc8EiW0lE6Q_);
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[8].name = "waitingReader";
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_4_7[4] = &TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[9];
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[9].kind = 1;
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[9].offset = offsetof(tyObject_PageBufferscolonObjectType___nlkRekTd17649aI9az0ZyeXA, waitingWriter);
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[9].typ = (&NTI__wrhe6hYHoM2gc8EiW0lE6Q_);
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[9].name = "waitingWriter";
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_4_7[5] = &TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[10];
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[10].kind = 1;
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[10].offset = offsetof(tyObject_PageBufferscolonObjectType___nlkRekTd17649aI9az0ZyeXA, eofReached);
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[10].typ = (&NTI__VaVACK0bpYmqIQ0mKcHfQQ_);
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[10].name = "eofReached";
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_4_7[6] = &TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[11];
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[11].kind = 1;
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[11].offset = offsetof(tyObject_PageBufferscolonObjectType___nlkRekTd17649aI9az0ZyeXA, fauxEofPos);
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[11].typ = (&NTI__hLlQjbV9bLNq5PFxYcqacsA_);
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[11].name = "fauxEofPos";
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[4].len = 7; TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[4].kind = 2; TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[4].sons = &TM__eXQvBPq9c1e9a9cnoIGLerKnQ_4_7[0];
|
|
NTI__nlkRekTd17649aI9az0ZyeXA_.node = &TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[4];
|
|
NTI__DCqn8KV9bsuBtqFpbSyUeZw_.size = sizeof(tyObject_PageBufferscolonObjectType___nlkRekTd17649aI9az0ZyeXA*);
|
|
NTI__DCqn8KV9bsuBtqFpbSyUeZw_.kind = 22;
|
|
NTI__DCqn8KV9bsuBtqFpbSyUeZw_.base = (&NTI__nlkRekTd17649aI9az0ZyeXA_);
|
|
NTI__DCqn8KV9bsuBtqFpbSyUeZw_.name = "PageBuffers";
|
|
NTI__DCqn8KV9bsuBtqFpbSyUeZw_.nextType = nimTypeRoot; nimTypeRoot=&NTI__DCqn8KV9bsuBtqFpbSyUeZw_;
|
|
NTI__DCqn8KV9bsuBtqFpbSyUeZw_.marker = Marker_tyRef__DCqn8KV9bsuBtqFpbSyUeZw;
|
|
NTI__OQhERc4ItQI9bBgR7u8roHQ_.size = sizeof(tyObject_PageSpan__OQhERc4ItQI9bBgR7u8roHQ);
|
|
NTI__OQhERc4ItQI9bBgR7u8roHQ_.kind = 18;
|
|
NTI__OQhERc4ItQI9bBgR7u8roHQ_.base = 0;
|
|
NTI__OQhERc4ItQI9bBgR7u8roHQ_.flags = 3;
|
|
NTI__OQhERc4ItQI9bBgR7u8roHQ_.name = "PageSpan";
|
|
NTI__OQhERc4ItQI9bBgR7u8roHQ_.nextType = nimTypeRoot; nimTypeRoot=&NTI__OQhERc4ItQI9bBgR7u8roHQ_;
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_5_2[0] = &TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[13];
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[13].kind = 1;
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[13].offset = offsetof(tyObject_PageSpan__OQhERc4ItQI9bBgR7u8roHQ, startAddr);
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[13].typ = (&NTI__cG1a2XAxsP28AUq2q9aXnNg_);
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[13].name = "startAddr";
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_5_2[1] = &TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[14];
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[14].kind = 1;
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[14].offset = offsetof(tyObject_PageSpan__OQhERc4ItQI9bBgR7u8roHQ, endAddr);
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[14].typ = (&NTI__cG1a2XAxsP28AUq2q9aXnNg_);
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[14].name = "endAddr";
|
|
TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[12].len = 2; TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[12].kind = 2; TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[12].sons = &TM__eXQvBPq9c1e9a9cnoIGLerKnQ_5_2[0];
|
|
NTI__OQhERc4ItQI9bBgR7u8roHQ_.node = &TM__eXQvBPq9c1e9a9cnoIGLerKnQ_0[12];
|
|
}
|
|
|