mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-28 23:55:43 +00:00
3322 lines
245 KiB
C
3322 lines
245 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 -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/examples/v1 -o nimcache/release/example/@m..@s..@svendor@snim-eth@seth@srlp.nim.c.o nimcache/release/example/@m..@s..@svendor@snim-eth@seth@srlp.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_Rlp__hcsVkUqjm9aqE9bK87khEjnA tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA;
|
|
typedef struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ tySequence__6H5Oh5UUvVCLiakt9aTwtUQ;
|
|
typedef struct TNimType TNimType;
|
|
typedef struct TNimNode TNimNode;
|
|
typedef struct TGenericSeq TGenericSeq;
|
|
typedef struct tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw;
|
|
typedef struct tyObject_RlpError__ENkbLoxFdDxL9aDUnEQeCuw tyObject_RlpError__ENkbLoxFdDxL9aDUnEQeCuw;
|
|
typedef struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA;
|
|
typedef struct Exception Exception;
|
|
typedef struct RootObj RootObj;
|
|
typedef struct NimStringDesc NimStringDesc;
|
|
typedef struct tySequence__uB9b75OUPRENsBAu4AnoePA tySequence__uB9b75OUPRENsBAu4AnoePA;
|
|
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;
|
|
typedef struct tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ;
|
|
typedef struct tyObject_UnsupportedRlpError__Jr2f1AYBA9a9aer9akHZeOi5A tyObject_UnsupportedRlpError__Jr2f1AYBA9a9aer9akHZeOi5A;
|
|
typedef struct tySequence__mmfgVYcOeCQQZ9a5CfuuLXw tySequence__mmfgVYcOeCQQZ9a5CfuuLXw;
|
|
typedef struct tyObject_Capability__oMiYUJkdwZ19b9aXFIiVltLA tyObject_Capability__oMiYUJkdwZ19b9aXFIiVltLA;
|
|
typedef struct tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA;
|
|
typedef struct tyObject_helloObj__RJDJKdhEZMeRiafQYrpIAQ tyObject_helloObj__RJDJKdhEZMeRiafQYrpIAQ;
|
|
typedef struct tyObject_DisconnectionReasonList__BSmNWxleIm9aixvwuZbOKKQ tyObject_DisconnectionReasonList__BSmNWxleIm9aixvwuZbOKKQ;
|
|
typedef struct tyObject_sendDisconnectMsgObj__LOfLkVbnz7x9cApk9be6EHrQ tyObject_sendDisconnectMsgObj__LOfLkVbnz7x9cApk9be6EHrQ;
|
|
typedef struct tyObject_EmptyList__o9aWzeLYpWBjdkO5GBIHymA tyObject_EmptyList__o9aWzeLYpWBjdkO5GBIHymA;
|
|
typedef struct tyObject_pingObj__m5H9cUJNMClkRo0ZYT7XEsA tyObject_pingObj__m5H9cUJNMClkRo0ZYT7XEsA;
|
|
typedef struct tyObject_pongObj__TekLhkTsP9cYpdM6fzp74AA tyObject_pongObj__TekLhkTsP9cYpdM6fzp74AA;
|
|
typedef struct tyObject_RateLimits__OjRLL6WUdkpMc2LsZCemYQ tyObject_RateLimits__OjRLL6WUdkpMc2LsZCemYQ;
|
|
typedef struct tySequence__atzPT9bqVZh26epu1UBlGdg tySequence__atzPT9bqVZh26epu1UBlGdg;
|
|
typedef struct tyObject_statusObj__SXCVP2vZ9bQfFqHWkpBUlhQ tyObject_statusObj__SXCVP2vZ9bQfFqHWkpBUlhQ;
|
|
typedef struct tyObject_StatusOptions__x9awuFWGzTVnTkllQUQZeyw tyObject_StatusOptions__x9awuFWGzTVnTkllQUQZeyw;
|
|
typedef struct tyObject_Option__MBAh7IvpI0zpyfBz2BbYLA tyObject_Option__MBAh7IvpI0zpyfBz2BbYLA;
|
|
typedef struct tyObject_Option__74cK9bjQyfn1PprsUXq7aeQ tyObject_Option__74cK9bjQyfn1PprsUXq7aeQ;
|
|
typedef struct tyObject_Option__mNQrG9by9bIvS2rBRypY8a8A tyObject_Option__mNQrG9by9bIvS2rBRypY8a8A;
|
|
typedef struct tyObject_Option__b6B59aeUQwCKIUINi0UtvLw tyObject_Option__b6B59aeUQwCKIUINi0UtvLw;
|
|
typedef struct tyObject_Option__E2DJ9bGHMCoz3vfZ9b53k4Kw tyObject_Option__E2DJ9bGHMCoz3vfZ9b53k4Kw;
|
|
typedef struct tySequence__eXpefajkyY8lPtG9aKQpyHg tySequence__eXpefajkyY8lPtG9aKQpyHg;
|
|
typedef struct tyObject_Envelope__SvTrTIZs3cDneANW26dQlQ tyObject_Envelope__SvTrTIZs3cDneANW26dQlQ;
|
|
typedef struct tyObject_messagesObj__UGzMBnvD2AmEqt3LmBOuuA tyObject_messagesObj__UGzMBnvD2AmEqt3LmBOuuA;
|
|
typedef struct tyObject_statusOptionsObj__HhK0cEOBhVK5iJMBXBr3ZA tyObject_statusOptionsObj__HhK0cEOBhVK5iJMBXBr3ZA;
|
|
typedef struct tyObject_p2pRequestObj__SwVqvOpWDM2fDTYaqivw9bA tyObject_p2pRequestObj__SwVqvOpWDM2fDTYaqivw9bA;
|
|
typedef struct tyObject_p2pMessageObj__G7whMnAe9cEKPWX9aNQr4snw tyObject_p2pMessageObj__G7whMnAe9cEKPWX9aNQr4snw;
|
|
typedef struct tyObject_batchAcknowledgedObj__gSxX1tcO9c9bastpHXT9bBklg tyObject_batchAcknowledgedObj__gSxX1tcO9c9bastpHXT9bBklg;
|
|
typedef struct tyObject_messageResponseObj__uvcF6BLZiQbDwv5SrczX9bQ tyObject_messageResponseObj__uvcF6BLZiQbDwv5SrczX9bQ;
|
|
typedef struct tyObject_p2pSyncResponseObj__oWIxHyGbV9bnZm5gWFmN6nQ tyObject_p2pSyncResponseObj__oWIxHyGbV9bnZm5gWFmN6nQ;
|
|
typedef struct tyObject_p2pSyncRequestObj__X5FB6SM2Djifz0G7Ld4egQ tyObject_p2pSyncRequestObj__X5FB6SM2Djifz0G7Ld4egQ;
|
|
typedef struct tyObject_p2pRequestCompleteObj__1UIW05hLGQYGQpXIhfh9cog tyObject_p2pRequestCompleteObj__1UIW05hLGQYGQpXIhfh9cog;
|
|
typedef struct tyObject_MDigest__law9ct65KplMYBvtmjCQxbw tyObject_MDigest__law9ct65KplMYBvtmjCQxbw;
|
|
typedef struct tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ;
|
|
typedef struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA;
|
|
struct tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA {tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* bytes;
|
|
NI position;
|
|
};
|
|
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 TGenericSeq {NI len;
|
|
NI reserved;
|
|
};
|
|
struct RootObj {TNimType* m_type;};
|
|
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
|
|
};
|
|
struct Exception { RootObj Sup;Exception* parent;
|
|
NCSTRING name;
|
|
NimStringDesc* message;
|
|
tySequence__uB9b75OUPRENsBAu4AnoePA* trace;
|
|
Exception* up;
|
|
};
|
|
struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA { Exception Sup;};
|
|
struct tyObject_RlpError__ENkbLoxFdDxL9aDUnEQeCuw { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA Sup;};
|
|
struct tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw { tyObject_RlpError__ENkbLoxFdDxL9aDUnEQeCuw Sup;};
|
|
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 tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ { tyObject_RlpError__ENkbLoxFdDxL9aDUnEQeCuw Sup;};
|
|
struct tyObject_UnsupportedRlpError__Jr2f1AYBA9a9aer9akHZeOi5A { tyObject_RlpError__ENkbLoxFdDxL9aDUnEQeCuw Sup;};
|
|
struct tyObject_Capability__oMiYUJkdwZ19b9aXFIiVltLA {NimStringDesc* name;
|
|
NI version;
|
|
};
|
|
typedef NU8 tyArray__w5VB8h5K8DB3oWrO5U2wqg[64];
|
|
struct tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA {NI a;
|
|
NI b;
|
|
};
|
|
struct tyObject_helloObj__RJDJKdhEZMeRiafQYrpIAQ {NU version;
|
|
NimStringDesc* clientId;
|
|
tySequence__mmfgVYcOeCQQZ9a5CfuuLXw* capabilities;
|
|
NU listenPort;
|
|
tyArray__w5VB8h5K8DB3oWrO5U2wqg nodeId;
|
|
};
|
|
typedef NU8 tyEnum_DisconnectionReason__Ub6CwrFFyWvJS0L5dDig8w;
|
|
struct tyObject_DisconnectionReasonList__BSmNWxleIm9aixvwuZbOKKQ {tyEnum_DisconnectionReason__Ub6CwrFFyWvJS0L5dDig8w value;
|
|
};
|
|
struct tyObject_sendDisconnectMsgObj__LOfLkVbnz7x9cApk9be6EHrQ {tyObject_DisconnectionReasonList__BSmNWxleIm9aixvwuZbOKKQ reason;
|
|
};
|
|
struct tyObject_EmptyList__o9aWzeLYpWBjdkO5GBIHymA {char dummy;
|
|
};
|
|
struct tyObject_pingObj__m5H9cUJNMClkRo0ZYT7XEsA {tyObject_EmptyList__o9aWzeLYpWBjdkO5GBIHymA emptyList;
|
|
};
|
|
struct tyObject_pongObj__TekLhkTsP9cYpdM6fzp74AA {tyObject_EmptyList__o9aWzeLYpWBjdkO5GBIHymA emptyList;
|
|
};
|
|
typedef NU8 tyEnum_KeyKind__LFXHGEuoLnHx46NkDpGMkw;
|
|
struct tyObject_RateLimits__OjRLL6WUdkpMc2LsZCemYQ {NU limitIp;
|
|
NU limitPeerId;
|
|
NU limitTopic;
|
|
};
|
|
typedef NU8 tyArray__H8qf9bpC2ziYA2earmO8m7w[4];
|
|
struct tyObject_Option__MBAh7IvpI0zpyfBz2BbYLA {NF val;
|
|
NIM_BOOL has;
|
|
};
|
|
struct tyObject_Option__74cK9bjQyfn1PprsUXq7aeQ {tyArray__w5VB8h5K8DB3oWrO5U2wqg val;
|
|
NIM_BOOL has;
|
|
};
|
|
struct tyObject_Option__mNQrG9by9bIvS2rBRypY8a8A {NIM_BOOL val;
|
|
NIM_BOOL has;
|
|
};
|
|
struct tyObject_Option__b6B59aeUQwCKIUINi0UtvLw {tyObject_RateLimits__OjRLL6WUdkpMc2LsZCemYQ val;
|
|
NIM_BOOL has;
|
|
};
|
|
struct tyObject_Option__E2DJ9bGHMCoz3vfZ9b53k4Kw {tySequence__atzPT9bqVZh26epu1UBlGdg* val;
|
|
NIM_BOOL has;
|
|
};
|
|
struct tyObject_StatusOptions__x9awuFWGzTVnTkllQUQZeyw {tyObject_Option__MBAh7IvpI0zpyfBz2BbYLA powRequirement;
|
|
tyObject_Option__74cK9bjQyfn1PprsUXq7aeQ bloomFilter;
|
|
tyObject_Option__mNQrG9by9bIvS2rBRypY8a8A lightNode;
|
|
tyObject_Option__mNQrG9by9bIvS2rBRypY8a8A confirmationsEnabled;
|
|
tyObject_Option__b6B59aeUQwCKIUINi0UtvLw rateLimits;
|
|
tyObject_Option__E2DJ9bGHMCoz3vfZ9b53k4Kw topicInterest;
|
|
};
|
|
struct tyObject_statusObj__SXCVP2vZ9bQfFqHWkpBUlhQ {tyObject_StatusOptions__x9awuFWGzTVnTkllQUQZeyw options;
|
|
};
|
|
struct tyObject_Envelope__SvTrTIZs3cDneANW26dQlQ {NU32 expiry;
|
|
NU32 ttl;
|
|
tyArray__H8qf9bpC2ziYA2earmO8m7w topic;
|
|
tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* data;
|
|
NU64 nonce;
|
|
};
|
|
struct tyObject_messagesObj__UGzMBnvD2AmEqt3LmBOuuA {tySequence__eXpefajkyY8lPtG9aKQpyHg* envelopes;
|
|
};
|
|
struct tyObject_statusOptionsObj__HhK0cEOBhVK5iJMBXBr3ZA {tyObject_StatusOptions__x9awuFWGzTVnTkllQUQZeyw options;
|
|
};
|
|
struct tyObject_p2pRequestObj__SwVqvOpWDM2fDTYaqivw9bA {tyObject_Envelope__SvTrTIZs3cDneANW26dQlQ envelope;
|
|
};
|
|
struct tyObject_p2pMessageObj__G7whMnAe9cEKPWX9aNQr4snw {tySequence__eXpefajkyY8lPtG9aKQpyHg* envelopes;
|
|
};
|
|
struct tyObject_batchAcknowledgedObj__gSxX1tcO9c9bastpHXT9bBklg {char dummy;
|
|
};
|
|
struct tyObject_messageResponseObj__uvcF6BLZiQbDwv5SrczX9bQ {char dummy;
|
|
};
|
|
struct tyObject_p2pSyncResponseObj__oWIxHyGbV9bnZm5gWFmN6nQ {char dummy;
|
|
};
|
|
struct tyObject_p2pSyncRequestObj__X5FB6SM2Djifz0G7Ld4egQ {char dummy;
|
|
};
|
|
typedef NU8 tyArray__vEOa9c5qaE9ajWxR5R4zwfQg[32];
|
|
struct tyObject_MDigest__law9ct65KplMYBvtmjCQxbw {tyArray__vEOa9c5qaE9ajWxR5R4zwfQg data;
|
|
};
|
|
struct tyObject_p2pRequestCompleteObj__1UIW05hLGQYGQpXIhfh9cog {tyObject_MDigest__law9ct65KplMYBvtmjCQxbw requestId;
|
|
tyObject_MDigest__law9ct65KplMYBvtmjCQxbw lastEnvelopeHash;
|
|
tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* cursor;
|
|
};
|
|
struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA {NCSTRING procname;
|
|
NI line;
|
|
NCSTRING filename;
|
|
};
|
|
struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ { TGenericSeq Sup; NU8 data[SEQ_DECL_SIZE];};struct tySequence__mmfgVYcOeCQQZ9a5CfuuLXw { TGenericSeq Sup; tyObject_Capability__oMiYUJkdwZ19b9aXFIiVltLA data[SEQ_DECL_SIZE];};struct tySequence__atzPT9bqVZh26epu1UBlGdg { TGenericSeq Sup; tyArray__H8qf9bpC2ziYA2earmO8m7w data[SEQ_DECL_SIZE];};struct tySequence__eXpefajkyY8lPtG9aKQpyHg { TGenericSeq Sup; tyObject_Envelope__SvTrTIZs3cDneANW26dQlQ data[SEQ_DECL_SIZE];};struct tySequence__uB9b75OUPRENsBAu4AnoePA { TGenericSeq Sup; tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA data[SEQ_DECL_SIZE];};static N_NIMCALL(void, Marker_tySequence__6H5Oh5UUvVCLiakt9aTwtUQ)(void* p, NI op);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, enterList__Y9cLBo9bOfPV52seSOSg1CUA)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* self);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isList__ub0XDNtFyV4Db7AJQ9aczBw)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, hasData__ub0XDNtFyV4Db7AJQ9aczBw_2)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, payloadOffset__EqfIXRABRD085klc9c3SUgg)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isSingleByte__ub0XDNtFyV4Db7AJQ9aczBw_3)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, lengthBytesCount__EqfIXRABRD085klc9c3SUgg_2)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isBlob__ub0XDNtFyV4Db7AJQ9aczBw_4)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op);
|
|
static N_NIMCALL(void, Marker_tyRef__9bHsEvciCZBKDZ5GE9cRsmlg)(void* p, NI op);
|
|
N_LIB_PRIVATE N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
|
|
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
|
|
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y);
|
|
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);
|
|
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr);
|
|
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);
|
|
N_LIB_PRIVATE N_NIMCALL(void, raiseExceptionEx)(Exception* e, NCSTRING ename, NCSTRING procname, NCSTRING filename, NI line);
|
|
N_LIB_PRIVATE N_NIMCALL(NU, toInt__sqw9au0Q6kvY8qBqmV1YDeg)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self);
|
|
static N_NIMCALL(void, Marker_tyRef__0geplitlq7F5N3ksbgvhVA)(void* p, NI op);
|
|
static N_NIMCALL(void, Marker_tyRef__pQej6mMEHNhZxWV0UFPK3w)(void* p, NI op);
|
|
N_LIB_PRIVATE N_NIMCALL(void, skipElem__8ZqaueEfG6l7Lij1Qr1R9cA)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, currentElemEnd__EqfIXRABRD085klc9c3SUgg_4)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self);
|
|
N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toString__g9bxt4OwhtOHJ1z9cH9cyOJuw)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self);
|
|
N_NIMCALL(NimStringDesc*, mnewString)(NI len);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, listLen__EqfIXRABRD085klc9c3SUgg_5)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self);
|
|
static N_INLINE(void, nimZeroMem)(void* p, NI size);
|
|
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size);
|
|
N_LIB_PRIVATE N_NIMCALL(void, genericSeqAssign)(void* dest_0, void* src, TNimType* mt);
|
|
N_LIB_PRIVATE N_NIMCALL(void*, nimNewSeqOfCap)(TNimType* typ, NI cap);
|
|
N_LIB_PRIVATE N_NIMCALL(void, readImpl__DcKGWI9aR8AuO9bBPpQdPAnA)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, NIM_BOOL wrappedInList, tyObject_Capability__oMiYUJkdwZ19b9aXFIiVltLA* Result);
|
|
N_LIB_PRIVATE N_NOINLINE(void, chckNil)(void* p);
|
|
N_LIB_PRIVATE N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, readImpl__h9aYl0fDNSFR9c1VJqTUY4vA)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, readImpl__dwwa4jfW9asqscqqMPM0GrA)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, toInt__9bpdIP39biqJL4Q9a9bFssBeLQ)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self);
|
|
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, incrSeqV3)(TGenericSeq* s, TNimType* typ);
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, toBytes__GlivWos7Cy9coi2uRKRYdLg)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self);
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, X5BX5D___Kyr39aNcnXyqz84UZKlCSJw)(NU8* s, NI sLen_0, tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA x_0);
|
|
static N_INLINE(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA, dotdot___BokNSDrKN1xmV1nA01G9brAsystem)(NI a, NI b);
|
|
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(NU, readImpl__AX9cD9cPP6VuY5nGjk8vhJxA)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp);
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__mmfgVYcOeCQQZ9a5CfuuLXw*, readImpl__w8H5F3bwI3AhruEP1RTuaQ)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp);
|
|
N_LIB_PRIVATE N_NIMCALL(void, readImpl__I0ueAygqchVBulg9bEXjh3Q)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, tyArray__w5VB8h5K8DB3oWrO5U2wqg Result);
|
|
N_LIB_PRIVATE N_NIMCALL(tyEnum_DisconnectionReason__Ub6CwrFFyWvJS0L5dDig8w, readImpl__ck1BRTtHfgjp0lcI0j784Q)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp);
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_DisconnectionReasonList__BSmNWxleIm9aixvwuZbOKKQ, readImpl__Cw8lzPJBZoTY9aFbbLLHm9bw)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, NIM_BOOL wrappedInList);
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_EmptyList__o9aWzeLYpWBjdkO5GBIHymA, readImpl__yWKc9ad4mUjXHEP4WYZkK4A)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, NIM_BOOL wrappedInList);
|
|
N_LIB_PRIVATE N_NIMCALL(NU64, toInt__n9bxCUpDBrl6PELgtdcNE9bQ)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self);
|
|
N_LIB_PRIVATE N_NIMCALL(void, readImpl__hGKYJf0Df9an9bx4XieZjkcw)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, tyArray__H8qf9bpC2ziYA2earmO8m7w Result);
|
|
N_LIB_PRIVATE N_NIMCALL(void, read__Cg2rsLdI5Sk0c0b9cS9cop9cg)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, tyObject_StatusOptions__x9awuFWGzTVnTkllQUQZeyw* Result);
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__eXpefajkyY8lPtG9aKQpyHg*, readImpl__z6pHB4SbsScGl2v3Vrzq8g)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp);
|
|
N_LIB_PRIVATE N_NIMCALL(void, readImpl__FrtIwc9bBJ0He7HjddlI9cwQ)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, NIM_BOOL wrappedInList, tyObject_Envelope__SvTrTIZs3cDneANW26dQlQ* Result);
|
|
N_LIB_PRIVATE N_NIMCALL(NU32, readImpl__0DfzqFhdmjYPzLNLIJ5mRw)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp);
|
|
N_LIB_PRIVATE N_NIMCALL(NU32, toInt__9cUr9bDjj6EQm1WWuCxW9bCuQ)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self);
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, readImpl__5cVFIvCNHjlpY49bCCOY9czQ)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp);
|
|
N_LIB_PRIVATE N_NIMCALL(NU64, readImpl__n9c9asGD5ye1g9cqd6Ujny32w)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp);
|
|
N_LIB_PRIVATE N_NIMCALL(void, genericAssign)(void* dest_0, void* src, TNimType* mt);
|
|
static N_INLINE(tyObject_MDigest__law9ct65KplMYBvtmjCQxbw, read__LGLrSCyIXRw9cbF9cUuTFYlQtrie_defs)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp);
|
|
N_LIB_PRIVATE N_NIMCALL(void, readImpl__3gwDJx85XFY72DHpCoRzTA)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, tyArray__vEOa9c5qaE9ajWxR5R4zwfQg Result);
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRawBytes__gEd4nMbHvCuWTUcwgvzU9cA_2)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, NU8* bytes, NI bytesLen_0);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, X5BX5D___wOb6H4KHZySddEgq9c9cTBTQ)(NU8* s, NI sLen_0, tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA x_0);
|
|
static N_INLINE(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA, dotdot___xNR8BVBMWzS9bXXNMikmyLgsystem)(NI a, NI b);
|
|
N_LIB_PRIVATE N_NIMCALL(void, rlpFromBytes__sID1jdK1TDDl4MyhPZIesQ)(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* data_0, tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* Result);
|
|
N_LIB_PRIVATE N_NIMCALL(NI32, toInt__OqEhXXCteCZmqrn2WeUZdg)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self);
|
|
static N_NIMCALL(void, Marker_tyRef__xdcI6Mkp9cS0FReoFduSNKQ)(void* p, NI op);
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, at___FKhCG9aXnVoTuyjERVXzd2g)(NU8* a, NI aLen_0);
|
|
N_LIB_PRIVATE TNimType NTI__hcsVkUqjm9aqE9bK87khEjnA_;
|
|
extern TNimType NTI__k3HXouOuhqAKq0dx450lXQ_;
|
|
N_LIB_PRIVATE TNimType NTI__6H5Oh5UUvVCLiakt9aTwtUQ_;
|
|
extern TNimType NTI__rR5Bzr1D5krxoo1NcNyeMA_;
|
|
extern TNimType NTI__qrLSDoe2oBoAqNtJ9badtnA_;
|
|
N_LIB_PRIVATE TNimType NTI__ENkbLoxFdDxL9aDUnEQeCuw_;
|
|
N_LIB_PRIVATE TNimType NTI__NsCD7z47L1f4u9aMLVOwnJw_;
|
|
N_LIB_PRIVATE TNimType NTI__9bHsEvciCZBKDZ5GE9cRsmlg_;
|
|
STRING_LITERAL(TM__WaXqGRAfVeSDXlS9cwIpbgg_5, "List expected, but source RLP is not a list", 43);
|
|
STRING_LITERAL(TM__WaXqGRAfVeSDXlS9cwIpbgg_6, "Attempt to read an Int value past the RLP end", 45);
|
|
STRING_LITERAL(TM__WaXqGRAfVeSDXlS9cwIpbgg_7, "Int expected, but found a List", 30);
|
|
N_LIB_PRIVATE TNimType NTI__6cXDdh17tBlXcW9cVhgAVfQ_;
|
|
N_LIB_PRIVATE TNimType NTI__0geplitlq7F5N3ksbgvhVA_;
|
|
STRING_LITERAL(TM__WaXqGRAfVeSDXlS9cwIpbgg_10, "Read past the end of the RLP stream", 35);
|
|
STRING_LITERAL(TM__WaXqGRAfVeSDXlS9cwIpbgg_12, "Small number encoded in a non-canonical way", 43);
|
|
STRING_LITERAL(TM__WaXqGRAfVeSDXlS9cwIpbgg_15, "Number encoded with a leading zero", 34);
|
|
N_LIB_PRIVATE TNimType NTI__Jr2f1AYBA9a9aer9akHZeOi5A_;
|
|
N_LIB_PRIVATE TNimType NTI__pQej6mMEHNhZxWV0UFPK3w_;
|
|
STRING_LITERAL(TM__WaXqGRAfVeSDXlS9cwIpbgg_17, "Message too large to fit in memory", 34);
|
|
STRING_LITERAL(TM__WaXqGRAfVeSDXlS9cwIpbgg_27, "The RLP contains a larger than expected Int value", 49);
|
|
STRING_LITERAL(TM__WaXqGRAfVeSDXlS9cwIpbgg_31, "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim("
|
|
"222, 12) `self.hasData()` ", 89);
|
|
STRING_LITERAL(TM__WaXqGRAfVeSDXlS9cwIpbgg_35, "String expected, but the source RLP is not a blob", 49);
|
|
STRING_LITERAL(TM__WaXqGRAfVeSDXlS9cwIpbgg_39, "Sequence expected, but the source RLP is not a list.", 52);
|
|
STRING_LITERAL(TM__WaXqGRAfVeSDXlS9cwIpbgg_40, "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim("
|
|
"245, 12) `self.isList()` ", 88);
|
|
STRING_LITERAL(TM__WaXqGRAfVeSDXlS9cwIpbgg_43, "List length extends past the end of the stream", 46);
|
|
extern TNimType NTI__mmfgVYcOeCQQZ9a5CfuuLXw_;
|
|
STRING_LITERAL(TM__WaXqGRAfVeSDXlS9cwIpbgg_49, "List expected, but the source RLP is not a list.", 48);
|
|
STRING_LITERAL(TM__WaXqGRAfVeSDXlS9cwIpbgg_54, "Bytes array expected, but the source RLP is not a blob.", 55);
|
|
STRING_LITERAL(TM__WaXqGRAfVeSDXlS9cwIpbgg_55, "Bytes expected, but the source RLP in not a blob", 48);
|
|
STRING_LITERAL(TM__WaXqGRAfVeSDXlS9cwIpbgg_59, "Fixed-size array expected, but the source RLP contains a blob o"
|
|
"f different length", 81);
|
|
STRING_LITERAL(TM__WaXqGRAfVeSDXlS9cwIpbgg_62, "Enum expected, but the source RLP is not in valid range.", 56);
|
|
extern TNimType NTI__atzPT9bqVZh26epu1UBlGdg_;
|
|
extern TNimType NTI__eXpefajkyY8lPtG9aKQpyHg_;
|
|
extern TNimType NTI__SvTrTIZs3cDneANW26dQlQ_;
|
|
STRING_LITERAL(TM__WaXqGRAfVeSDXlS9cwIpbgg_92, "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim("
|
|
"262, 12) `self.isList()` ", 88);
|
|
N_LIB_PRIVATE TNimType NTI__xdcI6Mkp9cS0FReoFduSNKQ_;
|
|
extern TNimType* nimTypeRoot;
|
|
extern NIM_THREADVAR tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q;
|
|
static N_NIMCALL(void, Marker_tySequence__6H5Oh5UUvVCLiakt9aTwtUQ)(void* p, NI op) {
|
|
tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* a;
|
|
NI T1_; a = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*)p;
|
|
T1_ = (NI)0;}
|
|
|
|
#line 45 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, hasData__ub0XDNtFyV4Db7AJQ9aczBw_2)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self) { NIM_BOOL result; NI T1_; result = (NIM_BOOL)0;
|
|
#line 46 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 46 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 46 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T1_ = (self.bytes ? self.bytes->Sup.len : 0); result = (self.position < T1_); return result;}
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isList__ub0XDNtFyV4Db7AJQ9aczBw)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self) { NIM_BOOL result; NIM_BOOL T1_; result = (NIM_BOOL)0;
|
|
#line 62 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 62 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T1_ = (NIM_BOOL)0;
|
|
#line 62 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 62 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T1_ = hasData__ub0XDNtFyV4Db7AJQ9aczBw_2(self); if (!(T1_)) goto LA2_;
|
|
|
|
#line 62 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if ((NU)(self.position) >= (NU)(self.bytes ? self.bytes->Sup.len : 0)){ raiseIndexError2(self.position,(self.bytes ? self.bytes->Sup.len : 0)-1); } T1_ = ((NU8)(((NU8) 192)) <= (NU8)(self.bytes->data[self.position])); LA2_: ;
|
|
result = T1_; return result;}
|
|
|
|
#line 83 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isSingleByte__ub0XDNtFyV4Db7AJQ9aczBw_3)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self) { NIM_BOOL result; NIM_BOOL T1_; result = (NIM_BOOL)0;
|
|
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T1_ = (NIM_BOOL)0;
|
|
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T1_ = hasData__ub0XDNtFyV4Db7AJQ9aczBw_2(self); if (!(T1_)) goto LA2_;
|
|
|
|
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if ((NU)(self.position) >= (NU)(self.bytes ? self.bytes->Sup.len : 0)){ raiseIndexError2(self.position,(self.bytes ? self.bytes->Sup.len : 0)-1); } T1_ = ((NU8)(self.bytes->data[self.position]) < (NU8)(((NU8) 128))); LA2_: ;
|
|
result = T1_; return result;}
|
|
|
|
#line 53 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isBlob__ub0XDNtFyV4Db7AJQ9aczBw_4)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self) { NIM_BOOL result; NIM_BOOL T1_; result = (NIM_BOOL)0;
|
|
#line 54 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 54 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T1_ = (NIM_BOOL)0;
|
|
#line 54 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 54 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T1_ = hasData__ub0XDNtFyV4Db7AJQ9aczBw_2(self); if (!(T1_)) goto LA2_;
|
|
|
|
#line 54 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if ((NU)(self.position) >= (NU)(self.bytes ? self.bytes->Sup.len : 0)){ raiseIndexError2(self.position,(self.bytes ? self.bytes->Sup.len : 0)-1); } T1_ = ((NU8)(self.bytes->data[self.position]) < (NU8)(((NU8) 192))); LA2_: ;
|
|
result = T1_; return result;}
|
|
|
|
#line 75 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI, lengthBytesCount__EqfIXRABRD085klc9c3SUgg_2)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self) { NI result; NU8 marker;{ result = (NI)0;
|
|
#line 76 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if ((NU)(self.position) >= (NU)(self.bytes ? self.bytes->Sup.len : 0)){ raiseIndexError2(self.position,(self.bytes ? self.bytes->Sup.len : 0)-1); } marker = self.bytes->data[self.position];
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T3_;
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (NIM_BOOL)0;
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = isBlob__ub0XDNtFyV4Db7AJQ9aczBw_4(self); if (!(T3_)) goto LA4_;
|
|
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = ((NU8)(((NU8) 183)) < (NU8)(marker)); LA4_: ;
|
|
if (!T3_) goto LA5_;
|
|
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result = ((NI) ((NU8)((NU8)(marker) - (NU8)(((NU8) 183))))); goto BeforeRet_;
|
|
}
|
|
LA5_: ;
|
|
|
|
#line 79 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T9_;
|
|
#line 79 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T9_ = (NIM_BOOL)0;
|
|
#line 79 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 79 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T9_ = isList__ub0XDNtFyV4Db7AJQ9aczBw(self); if (!(T9_)) goto LA10_;
|
|
|
|
#line 79 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T9_ = ((NU8)(((NU8) 247)) < (NU8)(marker)); LA10_: ;
|
|
if (!T9_) goto LA11_;
|
|
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result = ((NI) ((NU8)((NU8)(marker) - (NU8)(((NU8) 247))))); goto BeforeRet_;
|
|
}
|
|
LA11_: ;
|
|
|
|
#line 81 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 81 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result = ((NI) 0); goto BeforeRet_;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 90 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI, payloadOffset__EqfIXRABRD085klc9c3SUgg)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self) { NI result; result = (NI)0;
|
|
#line 91 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 91 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T3_;
|
|
#line 91 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 91 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = isSingleByte__ub0XDNtFyV4Db7AJQ9aczBw_3(self); if (!T3_) goto LA4_;
|
|
result = ((NI) 0); }
|
|
goto LA1_;
|
|
LA4_: ;
|
|
{ NI T7_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_3;
|
|
#line 91 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 91 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 91 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T7_ = (NI)0; T7_ = lengthBytesCount__EqfIXRABRD085klc9c3SUgg_2(self); if (nimAddInt(((NI) 1), T7_, &TM__WaXqGRAfVeSDXlS9cwIpbgg_3)) { raiseOverflow(); }; result = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_3); }
|
|
LA1_: ;
|
|
return result;}
|
|
|
|
#line 230 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, enterList__Y9cLBo9bOfPV52seSOSg1CUA)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* self) { NIM_BOOL result; NI T6_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_4;{ result = (NIM_BOOL)0;
|
|
#line 231 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T3_;
|
|
#line 231 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 231 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 231 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = isList__ub0XDNtFyV4Db7AJQ9aczBw((*self)); if (!!(T3_)) goto LA4_;
|
|
|
|
#line 232 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 232 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result = NIM_FALSE; goto BeforeRet_;
|
|
}
|
|
LA4_: ;
|
|
|
|
#line 234 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 234 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 234 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T6_ = (NI)0; T6_ = payloadOffset__EqfIXRABRD085klc9c3SUgg((*self)); if (nimAddInt((*self).position, T6_, &TM__WaXqGRAfVeSDXlS9cwIpbgg_4)) { raiseOverflow(); }; (*self).position = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_4);
|
|
#line 235 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 235 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result = NIM_TRUE; goto BeforeRet_;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
static N_NIMCALL(void, Marker_tyRef__9bHsEvciCZBKDZ5GE9cRsmlg)(void* p, NI op) {
|
|
tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* a;
|
|
a = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)p;
|
|
nimGCvisit((void*)(*a).Sup.Sup.Sup.parent, op); nimGCvisit((void*)(*a).Sup.Sup.Sup.message, op); nimGCvisit((void*)(*a).Sup.Sup.Sup.trace, op); nimGCvisit((void*)(*a).Sup.Sup.Sup.up, op);}
|
|
|
|
#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 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 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 227 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, nimGCunrefNoCycle)(void* p) { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T1_;
|
|
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T1_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T1_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(p);
|
|
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
decRef__AT1eRuflKWyTTBdLjEDZbgsystem(T1_);
|
|
}
|
|
|
|
#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 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 237 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, tryEnterList__shX46I8YemXV1E79awTesZg)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* self) {
|
|
#line 238 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T3_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T6_; NimStringDesc* T7_;
|
|
#line 238 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 238 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 238 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = enterList__Y9cLBo9bOfPV52seSOSg1CUA(self); if (!!(T3_)) goto LA4_;
|
|
T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T6_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T6_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T7_ = (NimStringDesc*)0; T7_ = (*T6_).Sup.Sup.Sup.message; (*T6_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_5)); if (T7_) nimGCunrefNoCycle(T7_); asgnRef((void**) (&(*T6_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T6_, "RlpTypeMismatch", "tryEnterList", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 239); }
|
|
LA4_: ;
|
|
}
|
|
static N_NIMCALL(void, Marker_tyRef__0geplitlq7F5N3ksbgvhVA)(void* p, NI op) {
|
|
tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ* a;
|
|
a = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*)p;
|
|
nimGCvisit((void*)(*a).Sup.Sup.Sup.parent, op); nimGCvisit((void*)(*a).Sup.Sup.Sup.message, op); nimGCvisit((void*)(*a).Sup.Sup.Sup.trace, op); nimGCvisit((void*)(*a).Sup.Sup.Sup.up, op);}
|
|
static N_NIMCALL(void, Marker_tyRef__pQej6mMEHNhZxWV0UFPK3w)(void* p, NI op) {
|
|
tyObject_UnsupportedRlpError__Jr2f1AYBA9a9aer9akHZeOi5A* a;
|
|
a = (tyObject_UnsupportedRlpError__Jr2f1AYBA9a9aer9akHZeOi5A*)p;
|
|
nimGCvisit((void*)(*a).Sup.Sup.Sup.parent, op); nimGCvisit((void*)(*a).Sup.Sup.Sup.message, op); nimGCvisit((void*)(*a).Sup.Sup.Sup.trace, op); nimGCvisit((void*)(*a).Sup.Sup.Sup.up, op);}
|
|
|
|
#line 102 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI, payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self) { NI result; NU8 marker;{ result = (NI)0;
|
|
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T3_;
|
|
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = hasData__ub0XDNtFyV4Db7AJQ9aczBw_2(self); if (!!(T3_)) goto LA4_;
|
|
|
|
#line 104 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 104 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result = ((NI) 0); goto BeforeRet_;
|
|
}
|
|
LA4_: ;
|
|
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if ((NU)(self.position) >= (NU)(self.bytes ? self.bytes->Sup.len : 0)){ raiseIndexError2(self.position,(self.bytes ? self.bytes->Sup.len : 0)-1); } marker = self.bytes->data[self.position];
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (!((NU8)(marker) < (NU8)(((NU8) 128)))) goto LA8_;
|
|
|
|
#line 108 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 108 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result = ((NI) 1); goto BeforeRet_;
|
|
}
|
|
LA8_: ;
|
|
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (!((NU8)(marker) <= (NU8)(((NU8) 183)))) goto LA12_;
|
|
|
|
#line 110 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 110 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result = ((NI) ((NU8)((NU8)(marker) - (NU8)(((NU8) 128)))));
|
|
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI T16_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_8; NI T17_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_9; tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ* T20_; NimStringDesc* T21_;
|
|
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T16_ = (self.bytes ? self.bytes->Sup.len : 0); if (nimSubInt(T16_, self.position, &TM__WaXqGRAfVeSDXlS9cwIpbgg_8)) { raiseOverflow(); };
|
|
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T17_ = (NI)0; T17_ = payloadOffset__EqfIXRABRD085klc9c3SUgg(self); if (nimSubInt((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_8), T17_, &TM__WaXqGRAfVeSDXlS9cwIpbgg_9)) { raiseOverflow(); }; if (!((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_9) < result)) goto LA18_;
|
|
T20_ = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*)0; T20_ = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*) newObj((&NTI__0geplitlq7F5N3ksbgvhVA_), sizeof(tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ)); (*T20_).Sup.Sup.Sup.Sup.m_type = (&NTI__6cXDdh17tBlXcW9cVhgAVfQ_); (*T20_).Sup.Sup.Sup.name = "MalformedRlpError"; T21_ = (NimStringDesc*)0; T21_ = (*T20_).Sup.Sup.Sup.message; (*T20_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_10)); if (T21_) nimGCunrefNoCycle(T21_); asgnRef((void**) (&(*T20_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 97 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T20_, "MalformedRlpError", "payloadBytesCount", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 97); }
|
|
LA18_: ;
|
|
|
|
#line 112 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{
|
|
#line 112 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (!(result == ((NI) 1))) goto LA24_;
|
|
|
|
#line 113 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI TM__WaXqGRAfVeSDXlS9cwIpbgg_11; tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ* T30_; NimStringDesc* T31_;
|
|
#line 113 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 113 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(self.position, ((NI) 1), &TM__WaXqGRAfVeSDXlS9cwIpbgg_11)) { raiseOverflow(); }; if ((NU)((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_11)) >= (NU)(self.bytes ? self.bytes->Sup.len : 0)){ raiseIndexError2((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_11),(self.bytes ? self.bytes->Sup.len : 0)-1); } if (!((NU8)(self.bytes->data[(NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_11)]) < (NU8)(((NU8) 128)))) goto LA28_;
|
|
T30_ = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*)0; T30_ = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*) newObj((&NTI__0geplitlq7F5N3ksbgvhVA_), sizeof(tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ)); (*T30_).Sup.Sup.Sup.Sup.m_type = (&NTI__6cXDdh17tBlXcW9cVhgAVfQ_); (*T30_).Sup.Sup.Sup.name = "MalformedRlpError"; T31_ = (NimStringDesc*)0; T31_ = (*T30_).Sup.Sup.Sup.message; (*T30_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_12)); if (T31_) nimGCunrefNoCycle(T31_); asgnRef((void**) (&(*T30_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 114 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T30_, "MalformedRlpError", "payloadBytesCount", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 114); }
|
|
LA28_: ;
|
|
}
|
|
LA24_: ;
|
|
|
|
#line 115 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
goto BeforeRet_;
|
|
}
|
|
LA12_: ;
|
|
|
|
#line 140 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI lengthBytesX60gensym38070036_; NI remainingBytesX60gensym38070037_; NI T36_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_13;
|
|
#line 140 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (!((NU8)(marker) < (NU8)(((NU8) 192)))) goto LA34_;
|
|
|
|
#line 119 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 119 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
lengthBytesX60gensym38070036_ = ((NI) ((NU8)((NU8)(marker) - (NU8)(((NU8) 183)))));
|
|
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T36_ = (self.bytes ? self.bytes->Sup.len : 0); if (nimSubInt(T36_, self.position, &TM__WaXqGRAfVeSDXlS9cwIpbgg_13)) { raiseOverflow(); }; remainingBytesX60gensym38070037_ = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_13);
|
|
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ* T41_; NimStringDesc* T42_;
|
|
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (!(remainingBytesX60gensym38070037_ <= lengthBytesX60gensym38070036_)) goto LA39_;
|
|
T41_ = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*)0; T41_ = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*) newObj((&NTI__0geplitlq7F5N3ksbgvhVA_), sizeof(tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ)); (*T41_).Sup.Sup.Sup.Sup.m_type = (&NTI__6cXDdh17tBlXcW9cVhgAVfQ_); (*T41_).Sup.Sup.Sup.name = "MalformedRlpError"; T42_ = (NimStringDesc*)0; T42_ = (*T41_).Sup.Sup.Sup.message; (*T41_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_10)); if (T42_) nimGCunrefNoCycle(T42_); asgnRef((void**) (&(*T41_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 123 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T41_, "MalformedRlpError", "payloadBytesCount", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 123); }
|
|
LA39_: ;
|
|
|
|
#line 125 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T45_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_14; tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ* T49_; NimStringDesc* T50_;
|
|
#line 125 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T45_ = (NIM_BOOL)0;
|
|
#line 125 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T45_ = (((NI) 1) < remainingBytesX60gensym38070037_); if (!(T45_)) goto LA46_;
|
|
|
|
#line 125 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 125 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(self.position, ((NI) 1), &TM__WaXqGRAfVeSDXlS9cwIpbgg_14)) { raiseOverflow(); }; if ((NU)((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_14)) >= (NU)(self.bytes ? self.bytes->Sup.len : 0)){ raiseIndexError2((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_14),(self.bytes ? self.bytes->Sup.len : 0)-1); } T45_ = (self.bytes->data[(NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_14)] == ((NU8) 0)); LA46_: ;
|
|
if (!T45_) goto LA47_;
|
|
T49_ = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*)0; T49_ = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*) newObj((&NTI__0geplitlq7F5N3ksbgvhVA_), sizeof(tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ)); (*T49_).Sup.Sup.Sup.Sup.m_type = (&NTI__6cXDdh17tBlXcW9cVhgAVfQ_); (*T49_).Sup.Sup.Sup.name = "MalformedRlpError"; T50_ = (NimStringDesc*)0; T50_ = (*T49_).Sup.Sup.Sup.message; (*T49_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_15)); if (T50_) nimGCunrefNoCycle(T50_); asgnRef((void**) (&(*T49_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 126 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T49_, "MalformedRlpError", "payloadBytesCount", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 126); }
|
|
LA47_: ;
|
|
|
|
#line 129 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T53_; NIM_BOOL T55_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_16; tyObject_UnsupportedRlpError__Jr2f1AYBA9a9aer9akHZeOi5A* T59_; NimStringDesc* T60_;
|
|
#line 129 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T53_ = (NIM_BOOL)0;
|
|
#line 129 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T53_ = (((NI) 8) < lengthBytesX60gensym38070036_); if (T53_) goto LA54_;
|
|
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T55_ = (NIM_BOOL)0;
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T55_ = (lengthBytesX60gensym38070036_ == ((NI) 8)); if (!(T55_)) goto LA56_;
|
|
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(self.position, ((NI) 1), &TM__WaXqGRAfVeSDXlS9cwIpbgg_16)) { raiseOverflow(); }; if ((NU)((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_16)) >= (NU)(self.bytes ? self.bytes->Sup.len : 0)){ raiseIndexError2((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_16),(self.bytes ? self.bytes->Sup.len : 0)-1); } T55_ = (((NI) 127) < ((NI) (self.bytes->data[(NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_16)]))); LA56_: ;
|
|
T53_ = T55_; LA54_: ;
|
|
if (!T53_) goto LA57_;
|
|
T59_ = (tyObject_UnsupportedRlpError__Jr2f1AYBA9a9aer9akHZeOi5A*)0; T59_ = (tyObject_UnsupportedRlpError__Jr2f1AYBA9a9aer9akHZeOi5A*) newObj((&NTI__pQej6mMEHNhZxWV0UFPK3w_), sizeof(tyObject_UnsupportedRlpError__Jr2f1AYBA9a9aer9akHZeOi5A)); (*T59_).Sup.Sup.Sup.Sup.m_type = (&NTI__Jr2f1AYBA9a9aer9akHZeOi5A_); (*T59_).Sup.Sup.Sup.name = "UnsupportedRlpError"; T60_ = (NimStringDesc*)0; T60_ = (*T59_).Sup.Sup.Sup.message; (*T59_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_17)); if (T60_) nimGCunrefNoCycle(T60_); asgnRef((void**) (&(*T59_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 131 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T59_, "UnsupportedRlpError", "payloadBytesCount", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 131); }
|
|
LA57_: ;
|
|
{ NI iX60gensym38070038_; NI res; iX60gensym38070038_ = (NI)0;
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
res = ((NI) 1); {
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__WaXqGRAfVeSDXlS9cwIpbgg_18; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_19;
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(res <= lengthBytesX60gensym38070036_)) goto LA63;
|
|
|
|
#line 133 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
iX60gensym38070038_ = res;
|
|
#line 134 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 134 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 134 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 134 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(self.position, iX60gensym38070038_, &TM__WaXqGRAfVeSDXlS9cwIpbgg_18)) { raiseOverflow(); }; if ((NU)((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_18)) >= (NU)(self.bytes ? self.bytes->Sup.len : 0)){ raiseIndexError2((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_18),(self.bytes ? self.bytes->Sup.len : 0)-1); } result = (NI)((NI)((NU64)(result) << (NU64)(((NI) 8))) | ((NI) (self.bytes->data[(NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_18)])));
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(res, ((NI) 1), &TM__WaXqGRAfVeSDXlS9cwIpbgg_19)) { raiseOverflow(); }; res = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_19); } LA63: ;
|
|
}
|
|
}
|
|
|
|
#line 141 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ* T68_; NimStringDesc* T69_;
|
|
#line 137 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (!(result < ((NI) 56))) goto LA66_;
|
|
T68_ = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*)0; T68_ = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*) newObj((&NTI__0geplitlq7F5N3ksbgvhVA_), sizeof(tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ)); (*T68_).Sup.Sup.Sup.Sup.m_type = (&NTI__6cXDdh17tBlXcW9cVhgAVfQ_); (*T68_).Sup.Sup.Sup.name = "MalformedRlpError"; T69_ = (NimStringDesc*)0; T69_ = (*T68_).Sup.Sup.Sup.message; (*T68_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_12)); if (T69_) nimGCunrefNoCycle(T69_); asgnRef((void**) (&(*T68_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 138 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T68_, "MalformedRlpError", "payloadBytesCount", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 138); }
|
|
LA66_: ;
|
|
}
|
|
goto LA32_;
|
|
LA34_: ;
|
|
{
|
|
#line 142 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (!((NU8)(marker) <= (NU8)(((NU8) 247)))) goto LA71_;
|
|
|
|
#line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result = ((NI) ((NU8)((NU8)(marker) - (NU8)(((NU8) 192))))); }
|
|
goto LA32_;
|
|
LA71_: ;
|
|
{ NI lengthBytesX60gensym38120002_; NI remainingBytesX60gensym38120003_; NI T74_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_20;
|
|
#line 119 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 119 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
lengthBytesX60gensym38120002_ = ((NI) ((NU8)((NU8)(marker) - (NU8)(((NU8) 247)))));
|
|
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T74_ = (self.bytes ? self.bytes->Sup.len : 0); if (nimSubInt(T74_, self.position, &TM__WaXqGRAfVeSDXlS9cwIpbgg_20)) { raiseOverflow(); }; remainingBytesX60gensym38120003_ = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_20);
|
|
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ* T79_; NimStringDesc* T80_;
|
|
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (!(remainingBytesX60gensym38120003_ <= lengthBytesX60gensym38120002_)) goto LA77_;
|
|
T79_ = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*)0; T79_ = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*) newObj((&NTI__0geplitlq7F5N3ksbgvhVA_), sizeof(tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ)); (*T79_).Sup.Sup.Sup.Sup.m_type = (&NTI__6cXDdh17tBlXcW9cVhgAVfQ_); (*T79_).Sup.Sup.Sup.name = "MalformedRlpError"; T80_ = (NimStringDesc*)0; T80_ = (*T79_).Sup.Sup.Sup.message; (*T79_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_10)); if (T80_) nimGCunrefNoCycle(T80_); asgnRef((void**) (&(*T79_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 123 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T79_, "MalformedRlpError", "payloadBytesCount", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 123); }
|
|
LA77_: ;
|
|
|
|
#line 125 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T83_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_21; tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ* T87_; NimStringDesc* T88_;
|
|
#line 125 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T83_ = (NIM_BOOL)0;
|
|
#line 125 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T83_ = (((NI) 1) < remainingBytesX60gensym38120003_); if (!(T83_)) goto LA84_;
|
|
|
|
#line 125 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 125 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(self.position, ((NI) 1), &TM__WaXqGRAfVeSDXlS9cwIpbgg_21)) { raiseOverflow(); }; if ((NU)((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_21)) >= (NU)(self.bytes ? self.bytes->Sup.len : 0)){ raiseIndexError2((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_21),(self.bytes ? self.bytes->Sup.len : 0)-1); } T83_ = (self.bytes->data[(NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_21)] == ((NU8) 0)); LA84_: ;
|
|
if (!T83_) goto LA85_;
|
|
T87_ = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*)0; T87_ = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*) newObj((&NTI__0geplitlq7F5N3ksbgvhVA_), sizeof(tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ)); (*T87_).Sup.Sup.Sup.Sup.m_type = (&NTI__6cXDdh17tBlXcW9cVhgAVfQ_); (*T87_).Sup.Sup.Sup.name = "MalformedRlpError"; T88_ = (NimStringDesc*)0; T88_ = (*T87_).Sup.Sup.Sup.message; (*T87_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_15)); if (T88_) nimGCunrefNoCycle(T88_); asgnRef((void**) (&(*T87_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 126 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T87_, "MalformedRlpError", "payloadBytesCount", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 126); }
|
|
LA85_: ;
|
|
|
|
#line 129 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T91_; NIM_BOOL T93_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_22; tyObject_UnsupportedRlpError__Jr2f1AYBA9a9aer9akHZeOi5A* T97_; NimStringDesc* T98_;
|
|
#line 129 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T91_ = (NIM_BOOL)0;
|
|
#line 129 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T91_ = (((NI) 8) < lengthBytesX60gensym38120002_); if (T91_) goto LA92_;
|
|
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T93_ = (NIM_BOOL)0;
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T93_ = (lengthBytesX60gensym38120002_ == ((NI) 8)); if (!(T93_)) goto LA94_;
|
|
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(self.position, ((NI) 1), &TM__WaXqGRAfVeSDXlS9cwIpbgg_22)) { raiseOverflow(); }; if ((NU)((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_22)) >= (NU)(self.bytes ? self.bytes->Sup.len : 0)){ raiseIndexError2((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_22),(self.bytes ? self.bytes->Sup.len : 0)-1); } T93_ = (((NI) 127) < ((NI) (self.bytes->data[(NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_22)]))); LA94_: ;
|
|
T91_ = T93_; LA92_: ;
|
|
if (!T91_) goto LA95_;
|
|
T97_ = (tyObject_UnsupportedRlpError__Jr2f1AYBA9a9aer9akHZeOi5A*)0; T97_ = (tyObject_UnsupportedRlpError__Jr2f1AYBA9a9aer9akHZeOi5A*) newObj((&NTI__pQej6mMEHNhZxWV0UFPK3w_), sizeof(tyObject_UnsupportedRlpError__Jr2f1AYBA9a9aer9akHZeOi5A)); (*T97_).Sup.Sup.Sup.Sup.m_type = (&NTI__Jr2f1AYBA9a9aer9akHZeOi5A_); (*T97_).Sup.Sup.Sup.name = "UnsupportedRlpError"; T98_ = (NimStringDesc*)0; T98_ = (*T97_).Sup.Sup.Sup.message; (*T97_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_17)); if (T98_) nimGCunrefNoCycle(T98_); asgnRef((void**) (&(*T97_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 131 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T97_, "UnsupportedRlpError", "payloadBytesCount", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 131); }
|
|
LA95_: ;
|
|
{ NI iX60gensym38120004_; NI res_2; iX60gensym38120004_ = (NI)0;
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
res_2 = ((NI) 1); {
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__WaXqGRAfVeSDXlS9cwIpbgg_23; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_24;
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(res_2 <= lengthBytesX60gensym38120002_)) goto LA101;
|
|
|
|
#line 133 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
iX60gensym38120004_ = res_2;
|
|
#line 134 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 134 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 134 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 134 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(self.position, iX60gensym38120004_, &TM__WaXqGRAfVeSDXlS9cwIpbgg_23)) { raiseOverflow(); }; if ((NU)((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_23)) >= (NU)(self.bytes ? self.bytes->Sup.len : 0)){ raiseIndexError2((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_23),(self.bytes ? self.bytes->Sup.len : 0)-1); } result = (NI)((NI)((NU64)(result) << (NU64)(((NI) 8))) | ((NI) (self.bytes->data[(NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_23)])));
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(res_2, ((NI) 1), &TM__WaXqGRAfVeSDXlS9cwIpbgg_24)) { raiseOverflow(); }; res_2 = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_24); } LA101: ;
|
|
}
|
|
}
|
|
|
|
#line 145 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ* T106_; NimStringDesc* T107_;
|
|
#line 137 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (!(result < ((NI) 56))) goto LA104_;
|
|
T106_ = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*)0; T106_ = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*) newObj((&NTI__0geplitlq7F5N3ksbgvhVA_), sizeof(tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ)); (*T106_).Sup.Sup.Sup.Sup.m_type = (&NTI__6cXDdh17tBlXcW9cVhgAVfQ_); (*T106_).Sup.Sup.Sup.name = "MalformedRlpError"; T107_ = (NimStringDesc*)0; T107_ = (*T106_).Sup.Sup.Sup.message; (*T106_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_12)); if (T107_) nimGCunrefNoCycle(T107_); asgnRef((void**) (&(*T106_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 138 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T106_, "MalformedRlpError", "payloadBytesCount", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 138); }
|
|
LA104_: ;
|
|
}
|
|
LA32_: ;
|
|
|
|
#line 147 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI T110_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_25; NI T111_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_26; tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ* T114_; NimStringDesc* T115_;
|
|
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T110_ = (self.bytes ? self.bytes->Sup.len : 0); if (nimSubInt(T110_, self.position, &TM__WaXqGRAfVeSDXlS9cwIpbgg_25)) { raiseOverflow(); };
|
|
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T111_ = (NI)0; T111_ = payloadOffset__EqfIXRABRD085klc9c3SUgg(self); if (nimSubInt((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_25), T111_, &TM__WaXqGRAfVeSDXlS9cwIpbgg_26)) { raiseOverflow(); }; if (!((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_26) < result)) goto LA112_;
|
|
T114_ = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*)0; T114_ = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*) newObj((&NTI__0geplitlq7F5N3ksbgvhVA_), sizeof(tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ)); (*T114_).Sup.Sup.Sup.Sup.m_type = (&NTI__6cXDdh17tBlXcW9cVhgAVfQ_); (*T114_).Sup.Sup.Sup.name = "MalformedRlpError"; T115_ = (NimStringDesc*)0; T115_ = (*T114_).Sup.Sup.Sup.message; (*T114_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_10)); if (T115_) nimGCunrefNoCycle(T115_); asgnRef((void**) (&(*T114_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 97 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T114_, "MalformedRlpError", "payloadBytesCount", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 97); }
|
|
LA112_: ;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 170 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NU, toInt__sqw9au0Q6kvY8qBqmV1YDeg)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self) { NU result; NI payloadStart; NI payloadSize; result = (NU)0;
|
|
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T3_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T6_; NimStringDesc* T7_;
|
|
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = hasData__ub0XDNtFyV4Db7AJQ9aczBw_2(self); if (!!(T3_)) goto LA4_;
|
|
T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T6_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T6_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T7_ = (NimStringDesc*)0; T7_ = (*T6_).Sup.Sup.Sup.message; (*T6_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_6)); if (T7_) nimGCunrefNoCycle(T7_); asgnRef((void**) (&(*T6_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 178 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T6_, "RlpTypeMismatch", "toInt", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 178); }
|
|
LA4_: ;
|
|
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T10_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T13_; NimStringDesc* T14_;
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T10_ = (NIM_BOOL)0; T10_ = isList__ub0XDNtFyV4Db7AJQ9aczBw(self); if (!T10_) goto LA11_;
|
|
T13_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T13_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T13_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T13_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T14_ = (NimStringDesc*)0; T14_ = (*T13_).Sup.Sup.Sup.message; (*T13_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_7)); if (T14_) nimGCunrefNoCycle(T14_); asgnRef((void**) (&(*T13_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T13_, "RlpTypeMismatch", "toInt", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 181); }
|
|
LA11_: ;
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadStart = payloadOffset__EqfIXRABRD085klc9c3SUgg(self);
|
|
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadSize = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3(self);
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T19_; NimStringDesc* T20_;
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (!(((NI) 8) < payloadSize)) goto LA17_;
|
|
T19_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T19_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T19_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T19_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T20_ = (NimStringDesc*)0; T20_ = (*T19_).Sup.Sup.Sup.message; (*T19_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_27)); if (T20_) nimGCunrefNoCycle(T20_); asgnRef((void**) (&(*T19_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T19_, "RlpTypeMismatch", "toInt", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 188); }
|
|
LA17_: ;
|
|
{ NI i; NI colontmp_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_28; NI i_2; i = (NI)0; colontmp_ = (NI)0;
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(payloadStart, payloadSize, &TM__WaXqGRAfVeSDXlS9cwIpbgg_28)) { raiseOverflow(); }; colontmp_ = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_28);
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
i_2 = payloadStart; {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__WaXqGRAfVeSDXlS9cwIpbgg_29; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_30;
|
|
#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 LA23;
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
i = i_2;
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(self.position, i, &TM__WaXqGRAfVeSDXlS9cwIpbgg_29)) { raiseOverflow(); }; if ((NU)((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_29)) >= (NU)(self.bytes ? self.bytes->Sup.len : 0)){ raiseIndexError2((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_29),(self.bytes ? self.bytes->Sup.len : 0)-1); } result = (NU)((NU)((NU64)(result) << (NU64)(((NI) 8))) | ((NU) (self.bytes->data[(NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_29)])));
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(i_2, ((NI) 1), &TM__WaXqGRAfVeSDXlS9cwIpbgg_30)) { raiseOverflow(); }; i_2 = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_30); } LA23: ;
|
|
}
|
|
}
|
|
return result;}
|
|
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI, currentElemEnd__EqfIXRABRD085klc9c3SUgg_4)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self) { NI result; result = (NI)0;
|
|
#line 222 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T3_;
|
|
#line 222 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 222 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 222 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = hasData__ub0XDNtFyV4Db7AJQ9aczBw_2(self); if (!!(T3_)) goto LA4_;
|
|
|
|
#line 222 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 222 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_31));
|
|
}
|
|
LA4_: ;
|
|
|
|
#line 223 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result = self.position;
|
|
#line 225 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T8_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_32;
|
|
#line 225 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 225 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T8_ = (NIM_BOOL)0; T8_ = isSingleByte__ub0XDNtFyV4Db7AJQ9aczBw_3(self); if (!T8_) goto LA9_;
|
|
|
|
#line 226 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(result, ((NI) 1), &TM__WaXqGRAfVeSDXlS9cwIpbgg_32)) { raiseOverflow(); }; result = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_32); }
|
|
goto LA6_;
|
|
LA9_: ;
|
|
{ NIM_BOOL T12_; NI T16_; NI T17_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_33; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_34;
|
|
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T12_ = (NIM_BOOL)0;
|
|
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T12_ = isBlob__ub0XDNtFyV4Db7AJQ9aczBw_4(self); if (T12_) goto LA13_;
|
|
|
|
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T12_ = isList__ub0XDNtFyV4Db7AJQ9aczBw(self); LA13_: ;
|
|
if (!T12_) goto LA14_;
|
|
|
|
#line 228 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 228 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 228 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 228 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T16_ = (NI)0; T16_ = payloadOffset__EqfIXRABRD085klc9c3SUgg(self);
|
|
#line 228 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 228 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T17_ = (NI)0; T17_ = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3(self); if (nimAddInt(T16_, T17_, &TM__WaXqGRAfVeSDXlS9cwIpbgg_33)) { raiseOverflow(); }; if (nimAddInt(result, (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_33), &TM__WaXqGRAfVeSDXlS9cwIpbgg_34)) { raiseOverflow(); }; result = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_34); }
|
|
goto LA6_;
|
|
LA14_: ;
|
|
LA6_: ;
|
|
return result;}
|
|
|
|
#line 241 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, skipElem__8ZqaueEfG6l7Lij1Qr1R9cA)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp) {
|
|
#line 242 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 242 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
(*rlp).position = currentElemEnd__EqfIXRABRD085klc9c3SUgg_4((*rlp));}
|
|
|
|
#line 289 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NU, readImpl__AX9cD9cPP6VuY5nGjk8vhJxA)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp) { NU result; result = (NU)0;
|
|
#line 290 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 290 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result = toInt__sqw9au0Q6kvY8qBqmV1YDeg((*rlp));
|
|
#line 291 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 291 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
skipElem__8ZqaueEfG6l7Lij1Qr1R9cA(rlp);
|
|
return result;}
|
|
|
|
#line 193 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toString__g9bxt4OwhtOHJ1z9cH9cyOJuw)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self) { NimStringDesc* result; NI payloadOffset; NI payloadLen; result = (NimStringDesc*)0;
|
|
#line 194 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T3_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T6_; NimStringDesc* T7_;
|
|
#line 194 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 194 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 194 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = isBlob__ub0XDNtFyV4Db7AJQ9aczBw_4(self); if (!!(T3_)) goto LA4_;
|
|
T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T6_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T6_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T7_ = (NimStringDesc*)0; T7_ = (*T6_).Sup.Sup.Sup.message; (*T6_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_35)); if (T7_) nimGCunrefNoCycle(T7_); asgnRef((void**) (&(*T6_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 195 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T6_, "RlpTypeMismatch", "toString", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 195); }
|
|
LA4_: ;
|
|
|
|
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadOffset = payloadOffset__EqfIXRABRD085klc9c3SUgg(self);
|
|
#line 199 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 199 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadLen = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3(self);
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if ((payloadLen) < ((NI) 0) || (payloadLen) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(payloadLen, ((NI) 0), ((NI) IL64(9223372036854775807))); }
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result = mnewString(((NI) (payloadLen))); { NI i; NI i_2; i = (NI)0;
|
|
#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) { NI TM__WaXqGRAfVeSDXlS9cwIpbgg_36; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_37; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_38;
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(i_2 < payloadLen)) goto LA10;
|
|
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
i = i_2; if ((NU)(i) >= (NU)(result ? result->Sup.len : 0)){ raiseIndexError2(i,(result ? result->Sup.len : 0)-1); }
|
|
#line 204 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 204 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 204 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(self.position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_36)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_36), i, &TM__WaXqGRAfVeSDXlS9cwIpbgg_37)) { raiseOverflow(); }; if ((NU)((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_37)) >= (NU)(self.bytes ? self.bytes->Sup.len : 0)){ raiseIndexError2((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_37),(self.bytes ? self.bytes->Sup.len : 0)-1); } result->data[i] = ((NIM_CHAR) (self.bytes->data[(NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_37)]));
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(i_2, ((NI) 1), &TM__WaXqGRAfVeSDXlS9cwIpbgg_38)) { raiseOverflow(); }; i_2 = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_38); } LA10: ;
|
|
}
|
|
}
|
|
return result;}
|
|
|
|
#line 285 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, readImpl__h9aYl0fDNSFR9c1VJqTUY4vA)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp) { NimStringDesc* result; result = (NimStringDesc*)0;
|
|
#line 286 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 286 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result = toString__g9bxt4OwhtOHJ1z9cH9cyOJuw((*rlp));
|
|
#line 287 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 287 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
skipElem__8ZqaueEfG6l7Lij1Qr1R9cA(rlp);
|
|
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 277 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI, listLen__EqfIXRABRD085klc9c3SUgg_5)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self) { NI result; tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA rlp;{ result = (NI)0;
|
|
#line 278 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T3_;
|
|
#line 278 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 278 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 278 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = isList__ub0XDNtFyV4Db7AJQ9aczBw(self); if (!!(T3_)) goto LA4_;
|
|
|
|
#line 279 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 279 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result = ((NI) 0); goto BeforeRet_;
|
|
}
|
|
LA4_: ;
|
|
nimZeroMem((void*)(&rlp), sizeof(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA));
|
|
#line 281 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
genericSeqAssign((&rlp.bytes), self.bytes, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_)); rlp.position = self.position; { tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* elem; NI payloadOffset; NI payloadEnd; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_41; NI T12_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_42; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_44; elem = (tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA*)0;
|
|
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T9_;
|
|
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T9_ = (NIM_BOOL)0; T9_ = isList__ub0XDNtFyV4Db7AJQ9aczBw(rlp); if (!!(T9_)) goto LA10_;
|
|
|
|
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_40));
|
|
}
|
|
LA10_: ;
|
|
|
|
#line 248 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 248 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadOffset = payloadOffset__EqfIXRABRD085klc9c3SUgg(rlp);
|
|
#line 249 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 249 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 249 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(rlp.position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_41)) { raiseOverflow(); };
|
|
#line 249 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 249 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T12_ = (NI)0; T12_ = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3(rlp); if (nimAddInt((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_41), T12_, &TM__WaXqGRAfVeSDXlS9cwIpbgg_42)) { raiseOverflow(); }; payloadEnd = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_42);
|
|
#line 251 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI T15_; tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ* T18_; NimStringDesc* T19_;
|
|
#line 251 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 251 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T15_ = (rlp.bytes ? rlp.bytes->Sup.len : 0); if (!(T15_ < payloadEnd)) goto LA16_;
|
|
T18_ = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*)0; T18_ = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*) newObj((&NTI__0geplitlq7F5N3ksbgvhVA_), sizeof(tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ)); (*T18_).Sup.Sup.Sup.Sup.m_type = (&NTI__6cXDdh17tBlXcW9cVhgAVfQ_); (*T18_).Sup.Sup.Sup.name = "MalformedRlpError"; T19_ = (NimStringDesc*)0; T19_ = (*T18_).Sup.Sup.Sup.message; (*T18_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_43)); if (T19_) nimGCunrefNoCycle(T19_); asgnRef((void**) (&(*T18_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 252 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T18_, "MalformedRlpError", "listLen", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 252); }
|
|
LA16_: ;
|
|
|
|
#line 254 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(rlp.position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_44)) { raiseOverflow(); }; rlp.position = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_44); {
|
|
#line 256 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
while (1) { NI elemEnd; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_45;
|
|
#line 256 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (!(rlp.position < payloadEnd)) goto LA21;
|
|
|
|
#line 257 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 257 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
elemEnd = currentElemEnd__EqfIXRABRD085klc9c3SUgg_4(rlp);
|
|
#line 282 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
elem = (&rlp);
|
|
#line 283 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(result, ((NI) 1), &TM__WaXqGRAfVeSDXlS9cwIpbgg_45)) { raiseOverflow(); }; result = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_45);
|
|
#line 259 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
rlp.position = elemEnd; } LA21: ;
|
|
}
|
|
}
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 170 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI, toInt__9bpdIP39biqJL4Q9a9bFssBeLQ)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self) { NI result; NI payloadStart; NI payloadSize; result = (NI)0;
|
|
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T3_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T6_; NimStringDesc* T7_;
|
|
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = hasData__ub0XDNtFyV4Db7AJQ9aczBw_2(self); if (!!(T3_)) goto LA4_;
|
|
T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T6_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T6_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T7_ = (NimStringDesc*)0; T7_ = (*T6_).Sup.Sup.Sup.message; (*T6_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_6)); if (T7_) nimGCunrefNoCycle(T7_); asgnRef((void**) (&(*T6_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 178 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T6_, "RlpTypeMismatch", "toInt", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 178); }
|
|
LA4_: ;
|
|
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T10_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T13_; NimStringDesc* T14_;
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T10_ = (NIM_BOOL)0; T10_ = isList__ub0XDNtFyV4Db7AJQ9aczBw(self); if (!T10_) goto LA11_;
|
|
T13_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T13_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T13_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T13_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T14_ = (NimStringDesc*)0; T14_ = (*T13_).Sup.Sup.Sup.message; (*T13_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_7)); if (T14_) nimGCunrefNoCycle(T14_); asgnRef((void**) (&(*T13_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T13_, "RlpTypeMismatch", "toInt", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 181); }
|
|
LA11_: ;
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadStart = payloadOffset__EqfIXRABRD085klc9c3SUgg(self);
|
|
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadSize = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3(self);
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T19_; NimStringDesc* T20_;
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (!(((NI) 8) < payloadSize)) goto LA17_;
|
|
T19_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T19_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T19_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T19_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T20_ = (NimStringDesc*)0; T20_ = (*T19_).Sup.Sup.Sup.message; (*T19_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_27)); if (T20_) nimGCunrefNoCycle(T20_); asgnRef((void**) (&(*T19_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T19_, "RlpTypeMismatch", "toInt", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 188); }
|
|
LA17_: ;
|
|
{ NI i; NI colontmp_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_51; NI i_2; i = (NI)0; colontmp_ = (NI)0;
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(payloadStart, payloadSize, &TM__WaXqGRAfVeSDXlS9cwIpbgg_51)) { raiseOverflow(); }; colontmp_ = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_51);
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
i_2 = payloadStart; {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__WaXqGRAfVeSDXlS9cwIpbgg_52; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_53;
|
|
#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 LA23;
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
i = i_2;
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(self.position, i, &TM__WaXqGRAfVeSDXlS9cwIpbgg_52)) { raiseOverflow(); }; if ((NU)((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_52)) >= (NU)(self.bytes ? self.bytes->Sup.len : 0)){ raiseIndexError2((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_52),(self.bytes ? self.bytes->Sup.len : 0)-1); } result = (NI)((NI)((NU64)(result) << (NU64)(((NI) 8))) | ((NI) (self.bytes->data[(NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_52)])));
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(i_2, ((NI) 1), &TM__WaXqGRAfVeSDXlS9cwIpbgg_53)) { raiseOverflow(); }; i_2 = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_53); } LA23: ;
|
|
}
|
|
}
|
|
return result;}
|
|
|
|
#line 289 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI, readImpl__dwwa4jfW9asqscqqMPM0GrA)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp) { NI result; result = (NI)0;
|
|
#line 290 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 290 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result = toInt__9bpdIP39biqJL4Q9a9bFssBeLQ((*rlp));
|
|
#line 291 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 291 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
skipElem__8ZqaueEfG6l7Lij1Qr1R9cA(rlp);
|
|
return result;}
|
|
|
|
#line 358 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, readImpl__DcKGWI9aR8AuO9bBPpQdPAnA)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, NIM_BOOL wrappedInList, tyObject_Capability__oMiYUJkdwZ19b9aXFIiVltLA* Result) { chckNil((void*)Result); unsureAsgnRef((void**)&(*Result).name, NIM_NIL); (*Result).version = 0;
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI payloadOffset; NI T12_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_50; if (!wrappedInList) goto LA3_;
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T7_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T10_; NimStringDesc* T11_;
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T7_ = (NIM_BOOL)0; T7_ = isList__ub0XDNtFyV4Db7AJQ9aczBw((*rlp)); if (!!(T7_)) goto LA8_;
|
|
T10_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T10_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T10_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T10_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T11_ = (NimStringDesc*)0; T11_ = (*T10_).Sup.Sup.Sup.message; (*T10_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_49)); if (T11_) nimGCunrefNoCycle(T11_); asgnRef((void**) (&(*T10_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T10_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 364); }
|
|
LA8_: ;
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadOffset = payloadOffset__EqfIXRABRD085klc9c3SUgg((*rlp));
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T12_ = (NI)0; T12_ = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3((*rlp)); (void)(T12_);
|
|
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt((*rlp).position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_50)) { raiseOverflow(); }; (*rlp).position = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_50); }
|
|
LA3_: ;
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
unsureAsgnRef((void**) (&(*Result).name), readImpl__h9aYl0fDNSFR9c1VJqTUY4vA(rlp));
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
(*Result).version = readImpl__dwwa4jfW9asqscqqMPM0GrA(rlp);}
|
|
|
|
#line 340 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__mmfgVYcOeCQQZ9a5CfuuLXw*, readImpl__w8H5F3bwI3AhruEP1RTuaQ)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp) { tySequence__mmfgVYcOeCQQZ9a5CfuuLXw* result; NI T8_; result = (tySequence__mmfgVYcOeCQQZ9a5CfuuLXw*)0;
|
|
#line 347 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T3_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T6_; NimStringDesc* T7_;
|
|
#line 347 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 347 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 347 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = isList__ub0XDNtFyV4Db7AJQ9aczBw((*rlp)); if (!!(T3_)) goto LA4_;
|
|
T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T6_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T6_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T7_ = (NimStringDesc*)0; T7_ = (*T6_).Sup.Sup.Sup.message; (*T6_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_39)); if (T7_) nimGCunrefNoCycle(T7_); asgnRef((void**) (&(*T6_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 348 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T6_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 348); }
|
|
LA4_: ;
|
|
|
|
#line 350 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 350 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 350 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 350 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T8_ = (NI)0; T8_ = listLen__EqfIXRABRD085klc9c3SUgg_5((*rlp)); if ((T8_) < ((NI) 0) || (T8_) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(T8_, ((NI) 0), ((NI) IL64(9223372036854775807))); } result = (tySequence__mmfgVYcOeCQQZ9a5CfuuLXw*)nimNewSeqOfCap((&NTI__mmfgVYcOeCQQZ9a5CfuuLXw_), ((NI) (T8_))); { tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* elem; NI payloadOffset; NI payloadEnd; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_46; NI T15_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_47; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_48; elem = (tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA*)0;
|
|
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T12_;
|
|
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T12_ = (NIM_BOOL)0; T12_ = isList__ub0XDNtFyV4Db7AJQ9aczBw((*rlp)); if (!!(T12_)) goto LA13_;
|
|
|
|
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_40));
|
|
}
|
|
LA13_: ;
|
|
|
|
#line 248 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 248 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadOffset = payloadOffset__EqfIXRABRD085klc9c3SUgg((*rlp));
|
|
#line 249 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 249 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 249 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt((*rlp).position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_46)) { raiseOverflow(); };
|
|
#line 249 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 249 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T15_ = (NI)0; T15_ = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3((*rlp)); if (nimAddInt((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_46), T15_, &TM__WaXqGRAfVeSDXlS9cwIpbgg_47)) { raiseOverflow(); }; payloadEnd = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_47);
|
|
#line 251 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI T18_; tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ* T21_; NimStringDesc* T22_;
|
|
#line 251 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 251 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T18_ = ((*rlp).bytes ? (*rlp).bytes->Sup.len : 0); if (!(T18_ < payloadEnd)) goto LA19_;
|
|
T21_ = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*)0; T21_ = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*) newObj((&NTI__0geplitlq7F5N3ksbgvhVA_), sizeof(tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ)); (*T21_).Sup.Sup.Sup.Sup.m_type = (&NTI__6cXDdh17tBlXcW9cVhgAVfQ_); (*T21_).Sup.Sup.Sup.name = "MalformedRlpError"; T22_ = (NimStringDesc*)0; T22_ = (*T21_).Sup.Sup.Sup.message; (*T21_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_43)); if (T22_) nimGCunrefNoCycle(T22_); asgnRef((void**) (&(*T21_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 252 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T21_, "MalformedRlpError", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 252); }
|
|
LA19_: ;
|
|
|
|
#line 254 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt((*rlp).position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_48)) { raiseOverflow(); }; (*rlp).position = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_48); {
|
|
#line 256 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
while (1) { NI elemEnd; tyObject_Capability__oMiYUJkdwZ19b9aXFIiVltLA T25_; NI T26_; NimStringDesc* T27_;
|
|
#line 256 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (!((*rlp).position < payloadEnd)) goto LA24;
|
|
|
|
#line 257 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 257 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
elemEnd = currentElemEnd__EqfIXRABRD085klc9c3SUgg_4((*rlp));
|
|
#line 352 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
elem = rlp;
|
|
#line 353 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 353 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 353 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
nimZeroMem((void*)(&T25_), sizeof(tyObject_Capability__oMiYUJkdwZ19b9aXFIiVltLA)); readImpl__DcKGWI9aR8AuO9bBPpQdPAnA(rlp, NIM_TRUE, (&T25_));
|
|
result = (tySequence__mmfgVYcOeCQQZ9a5CfuuLXw*) incrSeqV3((TGenericSeq*)(result), (&NTI__mmfgVYcOeCQQZ9a5CfuuLXw_)); T26_ = result->Sup.len++; T27_ = (NimStringDesc*)0; T27_ = result->data[T26_].name; result->data[T26_].name = copyStringRC1(T25_.name); if (T27_) nimGCunrefNoCycle(T27_); result->data[T26_].version = T25_.version;
|
|
#line 259 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
(*rlp).position = elemEnd; } LA24: ;
|
|
}
|
|
}
|
|
return result;}
|
|
|
|
#line 459 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA, dotdot___BokNSDrKN1xmV1nA01G9brAsystem)(NI a, NI b) { tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA result; nimZeroMem((void*)(&result), sizeof(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA));
|
|
#line 469 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
chckNil((void*)(&result)); nimZeroMem((void*)(&result), sizeof(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA)); result.a = a; result.b = b; return result;}
|
|
|
|
#line 206 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, toBytes__GlivWos7Cy9coi2uRKRYdLg)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self) { tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* result; NI payloadLen; result = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*)0;
|
|
#line 207 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T3_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T6_; NimStringDesc* T7_;
|
|
#line 207 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 207 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 207 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = isBlob__ub0XDNtFyV4Db7AJQ9aczBw_4(self); if (!!(T3_)) goto LA4_;
|
|
T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T6_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T6_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T7_ = (NimStringDesc*)0; T7_ = (*T6_).Sup.Sup.Sup.message; (*T6_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_55)); if (T7_) nimGCunrefNoCycle(T7_); asgnRef((void**) (&(*T6_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 208 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T6_, "RlpTypeMismatch", "toBytes", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 208); }
|
|
LA4_: ;
|
|
|
|
#line 211 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 211 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadLen = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3(self);
|
|
#line 213 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI payloadOffset; NI ibegin; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_56; NI iend; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_57; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_58; tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA T12_;
|
|
#line 213 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (!(((NI) 0) < payloadLen)) goto LA10_;
|
|
|
|
#line 215 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 215 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadOffset = payloadOffset__EqfIXRABRD085klc9c3SUgg(self);
|
|
#line 216 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 216 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(self.position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_56)) { raiseOverflow(); }; ibegin = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_56);
|
|
#line 217 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 217 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 217 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(ibegin, payloadLen, &TM__WaXqGRAfVeSDXlS9cwIpbgg_57)) { raiseOverflow(); }; if (nimSubInt((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_57), ((NI) 1), &TM__WaXqGRAfVeSDXlS9cwIpbgg_58)) { raiseOverflow(); }; iend = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_58);
|
|
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T12_ = dotdot___BokNSDrKN1xmV1nA01G9brAsystem(ibegin, iend);
|
|
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result = X5BX5D___Kyr39aNcnXyqz84UZKlCSJw(self.bytes->data, (self.bytes ? self.bytes->Sup.len : 0), T12_); }
|
|
LA10_: ;
|
|
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 313 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, readImpl__I0ueAygqchVBulg9bEXjh3Q)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, tyArray__w5VB8h5K8DB3oWrO5U2wqg Result) { tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* bytes; NI T15_; chckNil((void*)Result); nimZeroMem((void*)Result, sizeof(tyArray__w5VB8h5K8DB3oWrO5U2wqg));
|
|
#line 317 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T3_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T6_; NimStringDesc* T7_;
|
|
#line 317 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 317 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 317 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = isBlob__ub0XDNtFyV4Db7AJQ9aczBw_4((*rlp)); if (!!(T3_)) goto LA4_;
|
|
T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T6_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T6_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T7_ = (NimStringDesc*)0; T7_ = (*T6_).Sup.Sup.Sup.message; (*T6_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_54)); if (T7_) nimGCunrefNoCycle(T7_); asgnRef((void**) (&(*T6_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 318 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T6_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 318); }
|
|
LA4_: ;
|
|
|
|
#line 320 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 320 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
bytes = toBytes__GlivWos7Cy9coi2uRKRYdLg((*rlp));
|
|
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI T10_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T13_; NimStringDesc* T14_;
|
|
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T10_ = (bytes ? bytes->Sup.len : 0); if (!!((((NI) 64) == T10_))) goto LA11_;
|
|
T13_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T13_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T13_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T13_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T14_ = (NimStringDesc*)0; T14_ = (*T13_).Sup.Sup.Sup.message; (*T13_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_59)); if (T14_) nimGCunrefNoCycle(T14_); asgnRef((void**) (&(*T13_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 322 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T13_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 322); }
|
|
LA11_: ;
|
|
|
|
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if ((NU)(((NI) 0)) >= (NU)(bytes ? bytes->Sup.len : 0)){ raiseIndexError2(((NI) 0),(bytes ? bytes->Sup.len : 0)-1); }
|
|
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T15_ = (bytes ? bytes->Sup.len : 0); if ((T15_) < ((NI) 0) || (T15_) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(T15_, ((NI) 0), ((NI) IL64(9223372036854775807))); }
|
|
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&Result[(((NI) 0))- 0]))), ((void*) ((&bytes->data[((NI) 0)]))), ((NI) (T15_)));
|
|
|
|
#line 326 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 326 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
skipElem__8ZqaueEfG6l7Lij1Qr1R9cA(rlp);
|
|
}
|
|
|
|
#line 358 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, readImpl__2w3dk4hLq7ryNAeFQYJGJg)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, NIM_BOOL wrappedInList, tyObject_helloObj__RJDJKdhEZMeRiafQYrpIAQ* Result) { NI T1_; chckNil((void*)Result); (*Result).version = 0; unsureAsgnRef((void**)&(*Result).clientId, NIM_NIL); unsureAsgnRef((void**)&(*Result).capabilities, NIM_NIL); (*Result).listenPort = 0; T1_ = (NI)0; for (T1_ = 0; T1_ < 64; T1_++) { (*Result).nodeId[T1_] = 0; }
|
|
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI payloadOffset; NI T13_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_60; if (!wrappedInList) goto LA4_;
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T8_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T11_; NimStringDesc* T12_;
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T8_ = (NIM_BOOL)0; T8_ = isList__ub0XDNtFyV4Db7AJQ9aczBw((*rlp)); if (!!(T8_)) goto LA9_;
|
|
T11_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T11_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T11_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T11_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T12_ = (NimStringDesc*)0; T12_ = (*T11_).Sup.Sup.Sup.message; (*T11_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_49)); if (T12_) nimGCunrefNoCycle(T12_); asgnRef((void**) (&(*T11_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T11_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 364); }
|
|
LA9_: ;
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadOffset = payloadOffset__EqfIXRABRD085klc9c3SUgg((*rlp));
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T13_ = (NI)0; T13_ = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3((*rlp)); (void)(T13_);
|
|
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt((*rlp).position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_60)) { raiseOverflow(); }; (*rlp).position = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_60); }
|
|
LA4_: ;
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
(*Result).version = readImpl__AX9cD9cPP6VuY5nGjk8vhJxA(rlp);
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
unsureAsgnRef((void**) (&(*Result).clientId), readImpl__h9aYl0fDNSFR9c1VJqTUY4vA(rlp));
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
unsureAsgnRef((void**) (&(*Result).capabilities), readImpl__w8H5F3bwI3AhruEP1RTuaQ(rlp));
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
(*Result).listenPort = readImpl__AX9cD9cPP6VuY5nGjk8vhJxA(rlp);
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
readImpl__I0ueAygqchVBulg9bEXjh3Q(rlp, (*Result).nodeId);
|
|
}
|
|
|
|
#line 293 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyEnum_DisconnectionReason__Ub6CwrFFyWvJS0L5dDig8w, readImpl__ck1BRTtHfgjp0lcI0j784Q)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp) { tyEnum_DisconnectionReason__Ub6CwrFFyWvJS0L5dDig8w result; NI value_1; result = (tyEnum_DisconnectionReason__Ub6CwrFFyWvJS0L5dDig8w)0;
|
|
#line 294 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 294 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
value_1 = toInt__9bpdIP39biqJL4Q9a9bFssBeLQ((*rlp));
|
|
#line 295 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T3_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T7_; NimStringDesc* T8_;
|
|
#line 295 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (NIM_BOOL)0;
|
|
#line 295 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (value_1 < ((NI) 0)); if (T3_) goto LA4_;
|
|
|
|
#line 295 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (((NI) 16) < value_1); LA4_: ;
|
|
if (!T3_) goto LA5_;
|
|
T7_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T7_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T7_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T7_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T8_ = (NimStringDesc*)0; T8_ = (*T7_).Sup.Sup.Sup.message; (*T7_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_62)); if (T8_) nimGCunrefNoCycle(T8_); asgnRef((void**) (&(*T7_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 296 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T7_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 296); }
|
|
LA5_: ;
|
|
|
|
#line 298 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if ((value_1) < ((tyEnum_DisconnectionReason__Ub6CwrFFyWvJS0L5dDig8w) 0) || (value_1) > ((tyEnum_DisconnectionReason__Ub6CwrFFyWvJS0L5dDig8w) 16)){ raiseRangeErrorI(value_1, ((tyEnum_DisconnectionReason__Ub6CwrFFyWvJS0L5dDig8w) 0), ((tyEnum_DisconnectionReason__Ub6CwrFFyWvJS0L5dDig8w) 16)); } result = ((tyEnum_DisconnectionReason__Ub6CwrFFyWvJS0L5dDig8w) (value_1));
|
|
#line 299 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 299 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
skipElem__8ZqaueEfG6l7Lij1Qr1R9cA(rlp);
|
|
return result;}
|
|
|
|
#line 358 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_DisconnectionReasonList__BSmNWxleIm9aixvwuZbOKKQ, readImpl__Cw8lzPJBZoTY9aFbbLLHm9bw)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, NIM_BOOL wrappedInList) { tyObject_DisconnectionReasonList__BSmNWxleIm9aixvwuZbOKKQ result; nimZeroMem((void*)(&result), sizeof(tyObject_DisconnectionReasonList__BSmNWxleIm9aixvwuZbOKKQ));
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI payloadOffset; NI T12_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_61; if (!wrappedInList) goto LA3_;
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T7_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T10_; NimStringDesc* T11_;
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T7_ = (NIM_BOOL)0; T7_ = isList__ub0XDNtFyV4Db7AJQ9aczBw((*rlp)); if (!!(T7_)) goto LA8_;
|
|
T10_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T10_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T10_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T10_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T11_ = (NimStringDesc*)0; T11_ = (*T10_).Sup.Sup.Sup.message; (*T10_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_49)); if (T11_) nimGCunrefNoCycle(T11_); asgnRef((void**) (&(*T10_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T10_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 364); }
|
|
LA8_: ;
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadOffset = payloadOffset__EqfIXRABRD085klc9c3SUgg((*rlp));
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T12_ = (NI)0; T12_ = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3((*rlp)); (void)(T12_);
|
|
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt((*rlp).position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_61)) { raiseOverflow(); }; (*rlp).position = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_61); }
|
|
LA3_: ;
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result.value = readImpl__ck1BRTtHfgjp0lcI0j784Q(rlp); return result;}
|
|
|
|
#line 358 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_sendDisconnectMsgObj__LOfLkVbnz7x9cApk9be6EHrQ, readImpl__9bvqF8OD6qq9aldc9a5NOCppQ)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, NIM_BOOL wrappedInList) { tyObject_sendDisconnectMsgObj__LOfLkVbnz7x9cApk9be6EHrQ result; nimZeroMem((void*)(&result), sizeof(tyObject_sendDisconnectMsgObj__LOfLkVbnz7x9cApk9be6EHrQ));
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI payloadOffset; NI T12_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_63; if (!wrappedInList) goto LA3_;
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T7_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T10_; NimStringDesc* T11_;
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T7_ = (NIM_BOOL)0; T7_ = isList__ub0XDNtFyV4Db7AJQ9aczBw((*rlp)); if (!!(T7_)) goto LA8_;
|
|
T10_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T10_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T10_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T10_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T11_ = (NimStringDesc*)0; T11_ = (*T10_).Sup.Sup.Sup.message; (*T10_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_49)); if (T11_) nimGCunrefNoCycle(T11_); asgnRef((void**) (&(*T10_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T10_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 364); }
|
|
LA8_: ;
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadOffset = payloadOffset__EqfIXRABRD085klc9c3SUgg((*rlp));
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T12_ = (NI)0; T12_ = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3((*rlp)); (void)(T12_);
|
|
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt((*rlp).position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_63)) { raiseOverflow(); }; (*rlp).position = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_63); }
|
|
LA3_: ;
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result.reason = readImpl__Cw8lzPJBZoTY9aFbbLLHm9bw(rlp, NIM_TRUE); return result;}
|
|
|
|
#line 358 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_EmptyList__o9aWzeLYpWBjdkO5GBIHymA, readImpl__yWKc9ad4mUjXHEP4WYZkK4A)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, NIM_BOOL wrappedInList) { tyObject_EmptyList__o9aWzeLYpWBjdkO5GBIHymA result; nimZeroMem((void*)(&result), sizeof(tyObject_EmptyList__o9aWzeLYpWBjdkO5GBIHymA));
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI payloadOffset; NI T12_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_64; if (!wrappedInList) goto LA3_;
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T7_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T10_; NimStringDesc* T11_;
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T7_ = (NIM_BOOL)0; T7_ = isList__ub0XDNtFyV4Db7AJQ9aczBw((*rlp)); if (!!(T7_)) goto LA8_;
|
|
T10_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T10_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T10_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T10_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T11_ = (NimStringDesc*)0; T11_ = (*T10_).Sup.Sup.Sup.message; (*T10_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_49)); if (T11_) nimGCunrefNoCycle(T11_); asgnRef((void**) (&(*T10_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T10_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 364); }
|
|
LA8_: ;
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadOffset = payloadOffset__EqfIXRABRD085klc9c3SUgg((*rlp));
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T12_ = (NI)0; T12_ = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3((*rlp)); (void)(T12_);
|
|
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt((*rlp).position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_64)) { raiseOverflow(); }; (*rlp).position = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_64); }
|
|
LA3_: ;
|
|
return result;}
|
|
|
|
#line 358 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_pingObj__m5H9cUJNMClkRo0ZYT7XEsA, readImpl__sWUm4NqYeFuswqVAaq19chQ)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, NIM_BOOL wrappedInList) { tyObject_pingObj__m5H9cUJNMClkRo0ZYT7XEsA result; nimZeroMem((void*)(&result), sizeof(tyObject_pingObj__m5H9cUJNMClkRo0ZYT7XEsA));
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI payloadOffset; NI T12_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_65; if (!wrappedInList) goto LA3_;
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T7_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T10_; NimStringDesc* T11_;
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T7_ = (NIM_BOOL)0; T7_ = isList__ub0XDNtFyV4Db7AJQ9aczBw((*rlp)); if (!!(T7_)) goto LA8_;
|
|
T10_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T10_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T10_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T10_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T11_ = (NimStringDesc*)0; T11_ = (*T10_).Sup.Sup.Sup.message; (*T10_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_49)); if (T11_) nimGCunrefNoCycle(T11_); asgnRef((void**) (&(*T10_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T10_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 364); }
|
|
LA8_: ;
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadOffset = payloadOffset__EqfIXRABRD085klc9c3SUgg((*rlp));
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T12_ = (NI)0; T12_ = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3((*rlp)); (void)(T12_);
|
|
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt((*rlp).position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_65)) { raiseOverflow(); }; (*rlp).position = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_65); }
|
|
LA3_: ;
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result.emptyList = readImpl__yWKc9ad4mUjXHEP4WYZkK4A(rlp, NIM_TRUE); return result;}
|
|
|
|
#line 358 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_pongObj__TekLhkTsP9cYpdM6fzp74AA, readImpl__Px6BcogiXZEGjZYAEfdOxQ)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, NIM_BOOL wrappedInList) { tyObject_pongObj__TekLhkTsP9cYpdM6fzp74AA result; nimZeroMem((void*)(&result), sizeof(tyObject_pongObj__TekLhkTsP9cYpdM6fzp74AA));
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI payloadOffset; NI T12_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_66; if (!wrappedInList) goto LA3_;
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T7_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T10_; NimStringDesc* T11_;
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T7_ = (NIM_BOOL)0; T7_ = isList__ub0XDNtFyV4Db7AJQ9aczBw((*rlp)); if (!!(T7_)) goto LA8_;
|
|
T10_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T10_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T10_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T10_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T11_ = (NimStringDesc*)0; T11_ = (*T10_).Sup.Sup.Sup.message; (*T10_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_49)); if (T11_) nimGCunrefNoCycle(T11_); asgnRef((void**) (&(*T10_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T10_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 364); }
|
|
LA8_: ;
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadOffset = payloadOffset__EqfIXRABRD085klc9c3SUgg((*rlp));
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T12_ = (NI)0; T12_ = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3((*rlp)); (void)(T12_);
|
|
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt((*rlp).position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_66)) { raiseOverflow(); }; (*rlp).position = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_66); }
|
|
LA3_: ;
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result.emptyList = readImpl__yWKc9ad4mUjXHEP4WYZkK4A(rlp, NIM_TRUE); return result;}
|
|
|
|
#line 293 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyEnum_KeyKind__LFXHGEuoLnHx46NkDpGMkw, readImpl__8K1yiVmWY50R8vg9bmNigtA)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp) { tyEnum_KeyKind__LFXHGEuoLnHx46NkDpGMkw result; NI value_1; result = (tyEnum_KeyKind__LFXHGEuoLnHx46NkDpGMkw)0;
|
|
#line 294 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 294 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
value_1 = toInt__9bpdIP39biqJL4Q9a9bFssBeLQ((*rlp));
|
|
#line 295 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T3_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T7_; NimStringDesc* T8_;
|
|
#line 295 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (NIM_BOOL)0;
|
|
#line 295 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (value_1 < ((NI) 0)); if (T3_) goto LA4_;
|
|
|
|
#line 295 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (((NI) 5) < value_1); LA4_: ;
|
|
if (!T3_) goto LA5_;
|
|
T7_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T7_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T7_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T7_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T8_ = (NimStringDesc*)0; T8_ = (*T7_).Sup.Sup.Sup.message; (*T7_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_62)); if (T8_) nimGCunrefNoCycle(T8_); asgnRef((void**) (&(*T7_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 296 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T7_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 296); }
|
|
LA5_: ;
|
|
|
|
#line 298 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if ((value_1) < ((tyEnum_KeyKind__LFXHGEuoLnHx46NkDpGMkw) 0) || (value_1) > ((tyEnum_KeyKind__LFXHGEuoLnHx46NkDpGMkw) 5)){ raiseRangeErrorI(value_1, ((tyEnum_KeyKind__LFXHGEuoLnHx46NkDpGMkw) 0), ((tyEnum_KeyKind__LFXHGEuoLnHx46NkDpGMkw) 5)); } result = ((tyEnum_KeyKind__LFXHGEuoLnHx46NkDpGMkw) (value_1));
|
|
#line 299 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 299 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
skipElem__8ZqaueEfG6l7Lij1Qr1R9cA(rlp);
|
|
return result;}
|
|
|
|
#line 170 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NU64, toInt__n9bxCUpDBrl6PELgtdcNE9bQ)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self) { NU64 result; NI payloadStart; NI payloadSize; result = (NU64)0;
|
|
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T3_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T6_; NimStringDesc* T7_;
|
|
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = hasData__ub0XDNtFyV4Db7AJQ9aczBw_2(self); if (!!(T3_)) goto LA4_;
|
|
T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T6_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T6_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T7_ = (NimStringDesc*)0; T7_ = (*T6_).Sup.Sup.Sup.message; (*T6_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_6)); if (T7_) nimGCunrefNoCycle(T7_); asgnRef((void**) (&(*T6_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 178 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T6_, "RlpTypeMismatch", "toInt", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 178); }
|
|
LA4_: ;
|
|
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T10_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T13_; NimStringDesc* T14_;
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T10_ = (NIM_BOOL)0; T10_ = isList__ub0XDNtFyV4Db7AJQ9aczBw(self); if (!T10_) goto LA11_;
|
|
T13_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T13_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T13_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T13_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T14_ = (NimStringDesc*)0; T14_ = (*T13_).Sup.Sup.Sup.message; (*T13_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_7)); if (T14_) nimGCunrefNoCycle(T14_); asgnRef((void**) (&(*T13_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T13_, "RlpTypeMismatch", "toInt", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 181); }
|
|
LA11_: ;
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadStart = payloadOffset__EqfIXRABRD085klc9c3SUgg(self);
|
|
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadSize = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3(self);
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T19_; NimStringDesc* T20_;
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (!(((NI) 8) < payloadSize)) goto LA17_;
|
|
T19_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T19_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T19_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T19_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T20_ = (NimStringDesc*)0; T20_ = (*T19_).Sup.Sup.Sup.message; (*T19_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_27)); if (T20_) nimGCunrefNoCycle(T20_); asgnRef((void**) (&(*T19_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T19_, "RlpTypeMismatch", "toInt", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 188); }
|
|
LA17_: ;
|
|
{ NI i; NI colontmp_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_67; NI i_2; i = (NI)0; colontmp_ = (NI)0;
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(payloadStart, payloadSize, &TM__WaXqGRAfVeSDXlS9cwIpbgg_67)) { raiseOverflow(); }; colontmp_ = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_67);
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
i_2 = payloadStart; {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__WaXqGRAfVeSDXlS9cwIpbgg_68; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_69;
|
|
#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 LA23;
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
i = i_2;
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(self.position, i, &TM__WaXqGRAfVeSDXlS9cwIpbgg_68)) { raiseOverflow(); }; if ((NU)((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_68)) >= (NU)(self.bytes ? self.bytes->Sup.len : 0)){ raiseIndexError2((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_68),(self.bytes ? self.bytes->Sup.len : 0)-1); } result = (NU64)((NU64)((NU64)(result) << (NU64)(((NI) 8))) | ((NU64) (self.bytes->data[(NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_68)])));
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(i_2, ((NI) 1), &TM__WaXqGRAfVeSDXlS9cwIpbgg_69)) { raiseOverflow(); }; i_2 = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_69); } LA23: ;
|
|
}
|
|
}
|
|
return result;}
|
|
|
|
#line 289 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NU64, readImpl__n9c9asGD5ye1g9cqd6Ujny32w)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp) { NU64 result; result = (NU64)0;
|
|
#line 290 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 290 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result = toInt__n9bxCUpDBrl6PELgtdcNE9bQ((*rlp));
|
|
#line 291 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 291 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
skipElem__8ZqaueEfG6l7Lij1Qr1R9cA(rlp);
|
|
return result;}
|
|
|
|
#line 340 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, readImpl__5cVFIvCNHjlpY49bCCOY9czQ)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp) { tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* result; result = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*)0;
|
|
#line 344 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 344 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result = toBytes__GlivWos7Cy9coi2uRKRYdLg((*rlp));
|
|
#line 345 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 345 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
skipElem__8ZqaueEfG6l7Lij1Qr1R9cA(rlp);
|
|
return result;}
|
|
|
|
#line 301 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, readImpl__veWGT9aqpoxPUlFM8ZAD7Pw)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp) { NIM_BOOL result; NI T1_; result = (NIM_BOOL)0;
|
|
#line 302 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 302 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 302 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 302 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 302 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T1_ = (NI)0; T1_ = toInt__9bpdIP39biqJL4Q9a9bFssBeLQ((*rlp)); result = !((T1_ == ((NI) 0)));
|
|
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
skipElem__8ZqaueEfG6l7Lij1Qr1R9cA(rlp);
|
|
return result;}
|
|
|
|
#line 358 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_RateLimits__OjRLL6WUdkpMc2LsZCemYQ, readImpl__BJvDp0MkHD32jW0ycYBi9bA)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, NIM_BOOL wrappedInList) { tyObject_RateLimits__OjRLL6WUdkpMc2LsZCemYQ result; nimZeroMem((void*)(&result), sizeof(tyObject_RateLimits__OjRLL6WUdkpMc2LsZCemYQ));
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI payloadOffset; NI T12_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_70; if (!wrappedInList) goto LA3_;
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T7_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T10_; NimStringDesc* T11_;
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T7_ = (NIM_BOOL)0; T7_ = isList__ub0XDNtFyV4Db7AJQ9aczBw((*rlp)); if (!!(T7_)) goto LA8_;
|
|
T10_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T10_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T10_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T10_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T11_ = (NimStringDesc*)0; T11_ = (*T10_).Sup.Sup.Sup.message; (*T10_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_49)); if (T11_) nimGCunrefNoCycle(T11_); asgnRef((void**) (&(*T10_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T10_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 364); }
|
|
LA8_: ;
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadOffset = payloadOffset__EqfIXRABRD085klc9c3SUgg((*rlp));
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T12_ = (NI)0; T12_ = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3((*rlp)); (void)(T12_);
|
|
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt((*rlp).position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_70)) { raiseOverflow(); }; (*rlp).position = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_70); }
|
|
LA3_: ;
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result.limitIp = readImpl__AX9cD9cPP6VuY5nGjk8vhJxA(rlp);
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result.limitPeerId = readImpl__AX9cD9cPP6VuY5nGjk8vhJxA(rlp);
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result.limitTopic = readImpl__AX9cD9cPP6VuY5nGjk8vhJxA(rlp); return result;}
|
|
|
|
#line 313 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, readImpl__hGKYJf0Df9an9bx4XieZjkcw)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, tyArray__H8qf9bpC2ziYA2earmO8m7w Result) { tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* bytes; NI T15_; chckNil((void*)Result); nimZeroMem((void*)Result, sizeof(tyArray__H8qf9bpC2ziYA2earmO8m7w));
|
|
#line 317 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T3_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T6_; NimStringDesc* T7_;
|
|
#line 317 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 317 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 317 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = isBlob__ub0XDNtFyV4Db7AJQ9aczBw_4((*rlp)); if (!!(T3_)) goto LA4_;
|
|
T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T6_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T6_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T7_ = (NimStringDesc*)0; T7_ = (*T6_).Sup.Sup.Sup.message; (*T6_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_54)); if (T7_) nimGCunrefNoCycle(T7_); asgnRef((void**) (&(*T6_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 318 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T6_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 318); }
|
|
LA4_: ;
|
|
|
|
#line 320 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 320 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
bytes = toBytes__GlivWos7Cy9coi2uRKRYdLg((*rlp));
|
|
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI T10_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T13_; NimStringDesc* T14_;
|
|
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T10_ = (bytes ? bytes->Sup.len : 0); if (!!((((NI) 4) == T10_))) goto LA11_;
|
|
T13_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T13_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T13_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T13_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T14_ = (NimStringDesc*)0; T14_ = (*T13_).Sup.Sup.Sup.message; (*T13_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_59)); if (T14_) nimGCunrefNoCycle(T14_); asgnRef((void**) (&(*T13_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 322 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T13_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 322); }
|
|
LA11_: ;
|
|
|
|
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if ((NU)(((NI) 0)) >= (NU)(bytes ? bytes->Sup.len : 0)){ raiseIndexError2(((NI) 0),(bytes ? bytes->Sup.len : 0)-1); }
|
|
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T15_ = (bytes ? bytes->Sup.len : 0); if ((T15_) < ((NI) 0) || (T15_) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(T15_, ((NI) 0), ((NI) IL64(9223372036854775807))); }
|
|
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&Result[(((NI) 0))- 0]))), ((void*) ((&bytes->data[((NI) 0)]))), ((NI) (T15_)));
|
|
|
|
#line 326 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 326 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
skipElem__8ZqaueEfG6l7Lij1Qr1R9cA(rlp);
|
|
}
|
|
|
|
#line 340 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__atzPT9bqVZh26epu1UBlGdg*, readImpl__eHjE0umOlRn2W9bQEzvCLRw)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp) { tySequence__atzPT9bqVZh26epu1UBlGdg* result; NI T8_; result = (tySequence__atzPT9bqVZh26epu1UBlGdg*)0;
|
|
#line 347 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T3_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T6_; NimStringDesc* T7_;
|
|
#line 347 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 347 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 347 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = isList__ub0XDNtFyV4Db7AJQ9aczBw((*rlp)); if (!!(T3_)) goto LA4_;
|
|
T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T6_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T6_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T7_ = (NimStringDesc*)0; T7_ = (*T6_).Sup.Sup.Sup.message; (*T6_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_39)); if (T7_) nimGCunrefNoCycle(T7_); asgnRef((void**) (&(*T6_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 348 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T6_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 348); }
|
|
LA4_: ;
|
|
|
|
#line 350 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 350 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 350 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 350 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T8_ = (NI)0; T8_ = listLen__EqfIXRABRD085klc9c3SUgg_5((*rlp)); if ((T8_) < ((NI) 0) || (T8_) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(T8_, ((NI) 0), ((NI) IL64(9223372036854775807))); } result = (tySequence__atzPT9bqVZh26epu1UBlGdg*)nimNewSeqOfCap((&NTI__atzPT9bqVZh26epu1UBlGdg_), ((NI) (T8_))); { tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* elem; NI payloadOffset; NI payloadEnd; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_71; NI T15_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_72; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_73; elem = (tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA*)0;
|
|
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T12_;
|
|
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T12_ = (NIM_BOOL)0; T12_ = isList__ub0XDNtFyV4Db7AJQ9aczBw((*rlp)); if (!!(T12_)) goto LA13_;
|
|
|
|
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_40));
|
|
}
|
|
LA13_: ;
|
|
|
|
#line 248 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 248 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadOffset = payloadOffset__EqfIXRABRD085klc9c3SUgg((*rlp));
|
|
#line 249 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 249 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 249 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt((*rlp).position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_71)) { raiseOverflow(); };
|
|
#line 249 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 249 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T15_ = (NI)0; T15_ = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3((*rlp)); if (nimAddInt((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_71), T15_, &TM__WaXqGRAfVeSDXlS9cwIpbgg_72)) { raiseOverflow(); }; payloadEnd = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_72);
|
|
#line 251 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI T18_; tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ* T21_; NimStringDesc* T22_;
|
|
#line 251 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 251 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T18_ = ((*rlp).bytes ? (*rlp).bytes->Sup.len : 0); if (!(T18_ < payloadEnd)) goto LA19_;
|
|
T21_ = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*)0; T21_ = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*) newObj((&NTI__0geplitlq7F5N3ksbgvhVA_), sizeof(tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ)); (*T21_).Sup.Sup.Sup.Sup.m_type = (&NTI__6cXDdh17tBlXcW9cVhgAVfQ_); (*T21_).Sup.Sup.Sup.name = "MalformedRlpError"; T22_ = (NimStringDesc*)0; T22_ = (*T21_).Sup.Sup.Sup.message; (*T21_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_43)); if (T22_) nimGCunrefNoCycle(T22_); asgnRef((void**) (&(*T21_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 252 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T21_, "MalformedRlpError", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 252); }
|
|
LA19_: ;
|
|
|
|
#line 254 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt((*rlp).position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_73)) { raiseOverflow(); }; (*rlp).position = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_73); {
|
|
#line 256 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
while (1) { NI elemEnd; tyArray__H8qf9bpC2ziYA2earmO8m7w T25_; NI T26_;
|
|
#line 256 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (!((*rlp).position < payloadEnd)) goto LA24;
|
|
|
|
#line 257 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 257 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
elemEnd = currentElemEnd__EqfIXRABRD085klc9c3SUgg_4((*rlp));
|
|
#line 352 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
elem = rlp;
|
|
#line 353 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 353 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 353 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
nimZeroMem((void*)T25_, sizeof(tyArray__H8qf9bpC2ziYA2earmO8m7w)); readImpl__hGKYJf0Df9an9bx4XieZjkcw(rlp, T25_);
|
|
result = (tySequence__atzPT9bqVZh26epu1UBlGdg*) incrSeqV3((TGenericSeq*)(result), (&NTI__atzPT9bqVZh26epu1UBlGdg_)); T26_ = result->Sup.len++; nimCopyMem((void*)result->data[T26_], (NIM_CONST void*)T25_, sizeof(tyArray__H8qf9bpC2ziYA2earmO8m7w));
|
|
#line 259 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
(*rlp).position = elemEnd; } LA24: ;
|
|
}
|
|
}
|
|
return result;}
|
|
|
|
#line 358 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, readImpl__MPx7rbXng59aKEI2Fa7SoIQ)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, NIM_BOOL wrappedInList, tyObject_statusObj__SXCVP2vZ9bQfFqHWkpBUlhQ* Result) { NI T1_; chckNil((void*)Result); (*Result).options.powRequirement.val = 0; (*Result).options.powRequirement.has = 0; T1_ = (NI)0; for (T1_ = 0; T1_ < 64; T1_++) { (*Result).options.bloomFilter.val[T1_] = 0; }
|
|
(*Result).options.bloomFilter.has = 0; (*Result).options.lightNode.val = 0; (*Result).options.lightNode.has = 0; (*Result).options.confirmationsEnabled.val = 0; (*Result).options.confirmationsEnabled.has = 0; (*Result).options.rateLimits.val.limitIp = 0; (*Result).options.rateLimits.val.limitPeerId = 0; (*Result).options.rateLimits.val.limitTopic = 0; (*Result).options.rateLimits.has = 0; unsureAsgnRef((void**)&(*Result).options.topicInterest.val, NIM_NIL); (*Result).options.topicInterest.has = 0;
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI payloadOffset; NI T13_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_74; if (!wrappedInList) goto LA4_;
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T8_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T11_; NimStringDesc* T12_;
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T8_ = (NIM_BOOL)0; T8_ = isList__ub0XDNtFyV4Db7AJQ9aczBw((*rlp)); if (!!(T8_)) goto LA9_;
|
|
T11_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T11_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T11_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T11_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T12_ = (NimStringDesc*)0; T12_ = (*T11_).Sup.Sup.Sup.message; (*T11_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_49)); if (T12_) nimGCunrefNoCycle(T12_); asgnRef((void**) (&(*T11_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T11_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 364); }
|
|
LA9_: ;
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadOffset = payloadOffset__EqfIXRABRD085klc9c3SUgg((*rlp));
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T13_ = (NI)0; T13_ = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3((*rlp)); (void)(T13_);
|
|
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt((*rlp).position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_74)) { raiseOverflow(); }; (*rlp).position = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_74); }
|
|
LA4_: ;
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
read__Cg2rsLdI5Sk0c0b9cS9cop9cg(rlp, (&(*Result).options));
|
|
}
|
|
|
|
#line 170 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NU32, toInt__9cUr9bDjj6EQm1WWuCxW9bCuQ)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self) { NU32 result; NI payloadStart; NI payloadSize; result = (NU32)0;
|
|
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T3_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T6_; NimStringDesc* T7_;
|
|
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = hasData__ub0XDNtFyV4Db7AJQ9aczBw_2(self); if (!!(T3_)) goto LA4_;
|
|
T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T6_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T6_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T7_ = (NimStringDesc*)0; T7_ = (*T6_).Sup.Sup.Sup.message; (*T6_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_6)); if (T7_) nimGCunrefNoCycle(T7_); asgnRef((void**) (&(*T6_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 178 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T6_, "RlpTypeMismatch", "toInt", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 178); }
|
|
LA4_: ;
|
|
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T10_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T13_; NimStringDesc* T14_;
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T10_ = (NIM_BOOL)0; T10_ = isList__ub0XDNtFyV4Db7AJQ9aczBw(self); if (!T10_) goto LA11_;
|
|
T13_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T13_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T13_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T13_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T14_ = (NimStringDesc*)0; T14_ = (*T13_).Sup.Sup.Sup.message; (*T13_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_7)); if (T14_) nimGCunrefNoCycle(T14_); asgnRef((void**) (&(*T13_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T13_, "RlpTypeMismatch", "toInt", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 181); }
|
|
LA11_: ;
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadStart = payloadOffset__EqfIXRABRD085klc9c3SUgg(self);
|
|
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadSize = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3(self);
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T19_; NimStringDesc* T20_;
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (!(((NI) 4) < payloadSize)) goto LA17_;
|
|
T19_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T19_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T19_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T19_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T20_ = (NimStringDesc*)0; T20_ = (*T19_).Sup.Sup.Sup.message; (*T19_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_27)); if (T20_) nimGCunrefNoCycle(T20_); asgnRef((void**) (&(*T19_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T19_, "RlpTypeMismatch", "toInt", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 188); }
|
|
LA17_: ;
|
|
{ NI i; NI colontmp_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_79; NI i_2; i = (NI)0; colontmp_ = (NI)0;
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(payloadStart, payloadSize, &TM__WaXqGRAfVeSDXlS9cwIpbgg_79)) { raiseOverflow(); }; colontmp_ = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_79);
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
i_2 = payloadStart; {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__WaXqGRAfVeSDXlS9cwIpbgg_80; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_81;
|
|
#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 LA23;
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
i = i_2;
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(self.position, i, &TM__WaXqGRAfVeSDXlS9cwIpbgg_80)) { raiseOverflow(); }; if ((NU)((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_80)) >= (NU)(self.bytes ? self.bytes->Sup.len : 0)){ raiseIndexError2((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_80),(self.bytes ? self.bytes->Sup.len : 0)-1); } result = (NU32)((NU32)((NU64)(result) << (NU64)(((NI) 8))) | ((NU32) (self.bytes->data[(NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_80)])));
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(i_2, ((NI) 1), &TM__WaXqGRAfVeSDXlS9cwIpbgg_81)) { raiseOverflow(); }; i_2 = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_81); } LA23: ;
|
|
}
|
|
}
|
|
return result;}
|
|
|
|
#line 289 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NU32, readImpl__0DfzqFhdmjYPzLNLIJ5mRw)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp) { NU32 result; result = (NU32)0;
|
|
#line 290 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 290 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result = toInt__9cUr9bDjj6EQm1WWuCxW9bCuQ((*rlp));
|
|
#line 291 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 291 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
skipElem__8ZqaueEfG6l7Lij1Qr1R9cA(rlp);
|
|
return result;}
|
|
|
|
#line 358 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, readImpl__FrtIwc9bBJ0He7HjddlI9cwQ)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, NIM_BOOL wrappedInList, tyObject_Envelope__SvTrTIZs3cDneANW26dQlQ* Result) { NI T1_; chckNil((void*)Result); (*Result).expiry = 0; (*Result).ttl = 0; T1_ = (NI)0; for (T1_ = 0; T1_ < 4; T1_++) { (*Result).topic[T1_] = 0; }
|
|
unsureAsgnRef((void**)&(*Result).data, NIM_NIL); (*Result).nonce = 0;
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI payloadOffset; NI T13_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_78; if (!wrappedInList) goto LA4_;
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T8_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T11_; NimStringDesc* T12_;
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T8_ = (NIM_BOOL)0; T8_ = isList__ub0XDNtFyV4Db7AJQ9aczBw((*rlp)); if (!!(T8_)) goto LA9_;
|
|
T11_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T11_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T11_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T11_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T12_ = (NimStringDesc*)0; T12_ = (*T11_).Sup.Sup.Sup.message; (*T11_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_49)); if (T12_) nimGCunrefNoCycle(T12_); asgnRef((void**) (&(*T11_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T11_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 364); }
|
|
LA9_: ;
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadOffset = payloadOffset__EqfIXRABRD085klc9c3SUgg((*rlp));
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T13_ = (NI)0; T13_ = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3((*rlp)); (void)(T13_);
|
|
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt((*rlp).position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_78)) { raiseOverflow(); }; (*rlp).position = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_78); }
|
|
LA4_: ;
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
(*Result).expiry = readImpl__0DfzqFhdmjYPzLNLIJ5mRw(rlp);
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
(*Result).ttl = readImpl__0DfzqFhdmjYPzLNLIJ5mRw(rlp);
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
readImpl__hGKYJf0Df9an9bx4XieZjkcw(rlp, (*Result).topic);
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
unsureAsgnRef((void**) (&(*Result).data), readImpl__5cVFIvCNHjlpY49bCCOY9czQ(rlp));
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
(*Result).nonce = readImpl__n9c9asGD5ye1g9cqd6Ujny32w(rlp);}
|
|
|
|
#line 340 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__eXpefajkyY8lPtG9aKQpyHg*, readImpl__z6pHB4SbsScGl2v3Vrzq8g)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp) { tySequence__eXpefajkyY8lPtG9aKQpyHg* result; NI T8_; result = (tySequence__eXpefajkyY8lPtG9aKQpyHg*)0;
|
|
#line 347 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T3_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T6_; NimStringDesc* T7_;
|
|
#line 347 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 347 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 347 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = isList__ub0XDNtFyV4Db7AJQ9aczBw((*rlp)); if (!!(T3_)) goto LA4_;
|
|
T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T6_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T6_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T7_ = (NimStringDesc*)0; T7_ = (*T6_).Sup.Sup.Sup.message; (*T6_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_39)); if (T7_) nimGCunrefNoCycle(T7_); asgnRef((void**) (&(*T6_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 348 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T6_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 348); }
|
|
LA4_: ;
|
|
|
|
#line 350 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 350 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 350 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 350 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T8_ = (NI)0; T8_ = listLen__EqfIXRABRD085klc9c3SUgg_5((*rlp)); if ((T8_) < ((NI) 0) || (T8_) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(T8_, ((NI) 0), ((NI) IL64(9223372036854775807))); } result = (tySequence__eXpefajkyY8lPtG9aKQpyHg*)nimNewSeqOfCap((&NTI__eXpefajkyY8lPtG9aKQpyHg_), ((NI) (T8_))); { tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* elem; NI payloadOffset; NI payloadEnd; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_75; NI T15_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_76; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_77; elem = (tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA*)0;
|
|
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T12_;
|
|
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T12_ = (NIM_BOOL)0; T12_ = isList__ub0XDNtFyV4Db7AJQ9aczBw((*rlp)); if (!!(T12_)) goto LA13_;
|
|
|
|
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_40));
|
|
}
|
|
LA13_: ;
|
|
|
|
#line 248 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 248 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadOffset = payloadOffset__EqfIXRABRD085klc9c3SUgg((*rlp));
|
|
#line 249 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 249 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 249 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt((*rlp).position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_75)) { raiseOverflow(); };
|
|
#line 249 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 249 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T15_ = (NI)0; T15_ = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3((*rlp)); if (nimAddInt((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_75), T15_, &TM__WaXqGRAfVeSDXlS9cwIpbgg_76)) { raiseOverflow(); }; payloadEnd = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_76);
|
|
#line 251 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI T18_; tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ* T21_; NimStringDesc* T22_;
|
|
#line 251 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 251 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T18_ = ((*rlp).bytes ? (*rlp).bytes->Sup.len : 0); if (!(T18_ < payloadEnd)) goto LA19_;
|
|
T21_ = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*)0; T21_ = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*) newObj((&NTI__0geplitlq7F5N3ksbgvhVA_), sizeof(tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ)); (*T21_).Sup.Sup.Sup.Sup.m_type = (&NTI__6cXDdh17tBlXcW9cVhgAVfQ_); (*T21_).Sup.Sup.Sup.name = "MalformedRlpError"; T22_ = (NimStringDesc*)0; T22_ = (*T21_).Sup.Sup.Sup.message; (*T21_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_43)); if (T22_) nimGCunrefNoCycle(T22_); asgnRef((void**) (&(*T21_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 252 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T21_, "MalformedRlpError", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 252); }
|
|
LA19_: ;
|
|
|
|
#line 254 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt((*rlp).position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_77)) { raiseOverflow(); }; (*rlp).position = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_77); {
|
|
#line 256 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
while (1) { NI elemEnd; tyObject_Envelope__SvTrTIZs3cDneANW26dQlQ T25_; NI T26_;
|
|
#line 256 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (!((*rlp).position < payloadEnd)) goto LA24;
|
|
|
|
#line 257 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 257 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
elemEnd = currentElemEnd__EqfIXRABRD085klc9c3SUgg_4((*rlp));
|
|
#line 352 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
elem = rlp;
|
|
#line 353 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 353 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 353 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
nimZeroMem((void*)(&T25_), sizeof(tyObject_Envelope__SvTrTIZs3cDneANW26dQlQ)); readImpl__FrtIwc9bBJ0He7HjddlI9cwQ(rlp, NIM_TRUE, (&T25_));
|
|
result = (tySequence__eXpefajkyY8lPtG9aKQpyHg*) incrSeqV3((TGenericSeq*)(result), (&NTI__eXpefajkyY8lPtG9aKQpyHg_)); T26_ = result->Sup.len++; genericAssign((void*)(&result->data[T26_]), (void*)(&T25_), (&NTI__SvTrTIZs3cDneANW26dQlQ_));
|
|
#line 259 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
(*rlp).position = elemEnd; } LA24: ;
|
|
}
|
|
}
|
|
return result;}
|
|
|
|
#line 355 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__eXpefajkyY8lPtG9aKQpyHg*, readImpl__DLqUdH4Ct7wSzKDLg625TA)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp) { tySequence__eXpefajkyY8lPtG9aKQpyHg* result; result = (tySequence__eXpefajkyY8lPtG9aKQpyHg*)0;
|
|
#line 356 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 356 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result = readImpl__z6pHB4SbsScGl2v3Vrzq8g(rlp); return result;}
|
|
|
|
#line 358 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, readImpl__dubpsg8ryvn6rlMSZl9aU2g)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, NIM_BOOL wrappedInList, tyObject_messagesObj__UGzMBnvD2AmEqt3LmBOuuA* Result) { chckNil((void*)Result); unsureAsgnRef((void**)&(*Result).envelopes, NIM_NIL);
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI payloadOffset; NI T12_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_82; if (!wrappedInList) goto LA3_;
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T7_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T10_; NimStringDesc* T11_;
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T7_ = (NIM_BOOL)0; T7_ = isList__ub0XDNtFyV4Db7AJQ9aczBw((*rlp)); if (!!(T7_)) goto LA8_;
|
|
T10_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T10_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T10_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T10_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T11_ = (NimStringDesc*)0; T11_ = (*T10_).Sup.Sup.Sup.message; (*T10_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_49)); if (T11_) nimGCunrefNoCycle(T11_); asgnRef((void**) (&(*T10_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T10_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 364); }
|
|
LA8_: ;
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadOffset = payloadOffset__EqfIXRABRD085klc9c3SUgg((*rlp));
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T12_ = (NI)0; T12_ = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3((*rlp)); (void)(T12_);
|
|
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt((*rlp).position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_82)) { raiseOverflow(); }; (*rlp).position = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_82); }
|
|
LA3_: ;
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
unsureAsgnRef((void**) (&(*Result).envelopes), readImpl__z6pHB4SbsScGl2v3Vrzq8g(rlp));}
|
|
|
|
#line 358 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, readImpl__BcdJu3Bhho8qGaMxZ2DK3g)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, NIM_BOOL wrappedInList, tyObject_statusOptionsObj__HhK0cEOBhVK5iJMBXBr3ZA* Result) { NI T1_; chckNil((void*)Result); (*Result).options.powRequirement.val = 0; (*Result).options.powRequirement.has = 0; T1_ = (NI)0; for (T1_ = 0; T1_ < 64; T1_++) { (*Result).options.bloomFilter.val[T1_] = 0; }
|
|
(*Result).options.bloomFilter.has = 0; (*Result).options.lightNode.val = 0; (*Result).options.lightNode.has = 0; (*Result).options.confirmationsEnabled.val = 0; (*Result).options.confirmationsEnabled.has = 0; (*Result).options.rateLimits.val.limitIp = 0; (*Result).options.rateLimits.val.limitPeerId = 0; (*Result).options.rateLimits.val.limitTopic = 0; (*Result).options.rateLimits.has = 0; unsureAsgnRef((void**)&(*Result).options.topicInterest.val, NIM_NIL); (*Result).options.topicInterest.has = 0;
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI payloadOffset; NI T13_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_83; if (!wrappedInList) goto LA4_;
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T8_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T11_; NimStringDesc* T12_;
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T8_ = (NIM_BOOL)0; T8_ = isList__ub0XDNtFyV4Db7AJQ9aczBw((*rlp)); if (!!(T8_)) goto LA9_;
|
|
T11_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T11_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T11_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T11_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T12_ = (NimStringDesc*)0; T12_ = (*T11_).Sup.Sup.Sup.message; (*T11_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_49)); if (T12_) nimGCunrefNoCycle(T12_); asgnRef((void**) (&(*T11_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T11_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 364); }
|
|
LA9_: ;
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadOffset = payloadOffset__EqfIXRABRD085klc9c3SUgg((*rlp));
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T13_ = (NI)0; T13_ = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3((*rlp)); (void)(T13_);
|
|
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt((*rlp).position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_83)) { raiseOverflow(); }; (*rlp).position = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_83); }
|
|
LA4_: ;
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
read__Cg2rsLdI5Sk0c0b9cS9cop9cg(rlp, (&(*Result).options));
|
|
}
|
|
|
|
#line 358 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, readImpl__aJKRm3u9aphWBQoBcQBP9auQ)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, NIM_BOOL wrappedInList, tyObject_p2pRequestObj__SwVqvOpWDM2fDTYaqivw9bA* Result) { NI T1_; chckNil((void*)Result); (*Result).envelope.expiry = 0; (*Result).envelope.ttl = 0; T1_ = (NI)0; for (T1_ = 0; T1_ < 4; T1_++) { (*Result).envelope.topic[T1_] = 0; }
|
|
unsureAsgnRef((void**)&(*Result).envelope.data, NIM_NIL); (*Result).envelope.nonce = 0;
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI payloadOffset; NI T13_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_84; if (!wrappedInList) goto LA4_;
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T8_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T11_; NimStringDesc* T12_;
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T8_ = (NIM_BOOL)0; T8_ = isList__ub0XDNtFyV4Db7AJQ9aczBw((*rlp)); if (!!(T8_)) goto LA9_;
|
|
T11_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T11_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T11_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T11_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T12_ = (NimStringDesc*)0; T12_ = (*T11_).Sup.Sup.Sup.message; (*T11_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_49)); if (T12_) nimGCunrefNoCycle(T12_); asgnRef((void**) (&(*T11_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T11_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 364); }
|
|
LA9_: ;
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadOffset = payloadOffset__EqfIXRABRD085klc9c3SUgg((*rlp));
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T13_ = (NI)0; T13_ = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3((*rlp)); (void)(T13_);
|
|
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt((*rlp).position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_84)) { raiseOverflow(); }; (*rlp).position = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_84); }
|
|
LA4_: ;
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
readImpl__FrtIwc9bBJ0He7HjddlI9cwQ(rlp, NIM_TRUE, (&(*Result).envelope));
|
|
}
|
|
|
|
#line 358 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, readImpl__Y1WOgMkoiQREpHi4dFx7zg)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, NIM_BOOL wrappedInList, tyObject_p2pMessageObj__G7whMnAe9cEKPWX9aNQr4snw* Result) { chckNil((void*)Result); unsureAsgnRef((void**)&(*Result).envelopes, NIM_NIL);
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI payloadOffset; NI T12_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_85; if (!wrappedInList) goto LA3_;
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T7_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T10_; NimStringDesc* T11_;
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T7_ = (NIM_BOOL)0; T7_ = isList__ub0XDNtFyV4Db7AJQ9aczBw((*rlp)); if (!!(T7_)) goto LA8_;
|
|
T10_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T10_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T10_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T10_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T11_ = (NimStringDesc*)0; T11_ = (*T10_).Sup.Sup.Sup.message; (*T10_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_49)); if (T11_) nimGCunrefNoCycle(T11_); asgnRef((void**) (&(*T10_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T10_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 364); }
|
|
LA8_: ;
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadOffset = payloadOffset__EqfIXRABRD085klc9c3SUgg((*rlp));
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T12_ = (NI)0; T12_ = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3((*rlp)); (void)(T12_);
|
|
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt((*rlp).position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_85)) { raiseOverflow(); }; (*rlp).position = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_85); }
|
|
LA3_: ;
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
unsureAsgnRef((void**) (&(*Result).envelopes), readImpl__z6pHB4SbsScGl2v3Vrzq8g(rlp));}
|
|
|
|
#line 358 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_batchAcknowledgedObj__gSxX1tcO9c9bastpHXT9bBklg, readImpl__seH2Xj9bwysA9ctc5kVop9c1g)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, NIM_BOOL wrappedInList) { tyObject_batchAcknowledgedObj__gSxX1tcO9c9bastpHXT9bBklg result; nimZeroMem((void*)(&result), sizeof(tyObject_batchAcknowledgedObj__gSxX1tcO9c9bastpHXT9bBklg));
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI payloadOffset; NI T12_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_86; if (!wrappedInList) goto LA3_;
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T7_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T10_; NimStringDesc* T11_;
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T7_ = (NIM_BOOL)0; T7_ = isList__ub0XDNtFyV4Db7AJQ9aczBw((*rlp)); if (!!(T7_)) goto LA8_;
|
|
T10_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T10_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T10_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T10_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T11_ = (NimStringDesc*)0; T11_ = (*T10_).Sup.Sup.Sup.message; (*T10_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_49)); if (T11_) nimGCunrefNoCycle(T11_); asgnRef((void**) (&(*T10_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T10_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 364); }
|
|
LA8_: ;
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadOffset = payloadOffset__EqfIXRABRD085klc9c3SUgg((*rlp));
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T12_ = (NI)0; T12_ = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3((*rlp)); (void)(T12_);
|
|
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt((*rlp).position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_86)) { raiseOverflow(); }; (*rlp).position = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_86); }
|
|
LA3_: ;
|
|
return result;}
|
|
|
|
#line 358 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_messageResponseObj__uvcF6BLZiQbDwv5SrczX9bQ, readImpl__eWjbsf9b9aZ334RpmNNQ769aQ)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, NIM_BOOL wrappedInList) { tyObject_messageResponseObj__uvcF6BLZiQbDwv5SrczX9bQ result; nimZeroMem((void*)(&result), sizeof(tyObject_messageResponseObj__uvcF6BLZiQbDwv5SrczX9bQ));
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI payloadOffset; NI T12_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_87; if (!wrappedInList) goto LA3_;
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T7_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T10_; NimStringDesc* T11_;
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T7_ = (NIM_BOOL)0; T7_ = isList__ub0XDNtFyV4Db7AJQ9aczBw((*rlp)); if (!!(T7_)) goto LA8_;
|
|
T10_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T10_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T10_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T10_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T11_ = (NimStringDesc*)0; T11_ = (*T10_).Sup.Sup.Sup.message; (*T10_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_49)); if (T11_) nimGCunrefNoCycle(T11_); asgnRef((void**) (&(*T10_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T10_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 364); }
|
|
LA8_: ;
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadOffset = payloadOffset__EqfIXRABRD085klc9c3SUgg((*rlp));
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T12_ = (NI)0; T12_ = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3((*rlp)); (void)(T12_);
|
|
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt((*rlp).position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_87)) { raiseOverflow(); }; (*rlp).position = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_87); }
|
|
LA3_: ;
|
|
return result;}
|
|
|
|
#line 358 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_p2pSyncResponseObj__oWIxHyGbV9bnZm5gWFmN6nQ, readImpl__qlA9cRMMKTAZp4FmA9b3THhw)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, NIM_BOOL wrappedInList) { tyObject_p2pSyncResponseObj__oWIxHyGbV9bnZm5gWFmN6nQ result; nimZeroMem((void*)(&result), sizeof(tyObject_p2pSyncResponseObj__oWIxHyGbV9bnZm5gWFmN6nQ));
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI payloadOffset; NI T12_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_88; if (!wrappedInList) goto LA3_;
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T7_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T10_; NimStringDesc* T11_;
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T7_ = (NIM_BOOL)0; T7_ = isList__ub0XDNtFyV4Db7AJQ9aczBw((*rlp)); if (!!(T7_)) goto LA8_;
|
|
T10_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T10_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T10_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T10_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T11_ = (NimStringDesc*)0; T11_ = (*T10_).Sup.Sup.Sup.message; (*T10_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_49)); if (T11_) nimGCunrefNoCycle(T11_); asgnRef((void**) (&(*T10_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T10_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 364); }
|
|
LA8_: ;
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadOffset = payloadOffset__EqfIXRABRD085klc9c3SUgg((*rlp));
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T12_ = (NI)0; T12_ = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3((*rlp)); (void)(T12_);
|
|
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt((*rlp).position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_88)) { raiseOverflow(); }; (*rlp).position = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_88); }
|
|
LA3_: ;
|
|
return result;}
|
|
|
|
#line 358 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_p2pSyncRequestObj__X5FB6SM2Djifz0G7Ld4egQ, readImpl__Kaf4W5c1N2qkvosx9cq7oPg)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, NIM_BOOL wrappedInList) { tyObject_p2pSyncRequestObj__X5FB6SM2Djifz0G7Ld4egQ result; nimZeroMem((void*)(&result), sizeof(tyObject_p2pSyncRequestObj__X5FB6SM2Djifz0G7Ld4egQ));
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI payloadOffset; NI T12_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_89; if (!wrappedInList) goto LA3_;
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T7_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T10_; NimStringDesc* T11_;
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T7_ = (NIM_BOOL)0; T7_ = isList__ub0XDNtFyV4Db7AJQ9aczBw((*rlp)); if (!!(T7_)) goto LA8_;
|
|
T10_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T10_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T10_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T10_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T11_ = (NimStringDesc*)0; T11_ = (*T10_).Sup.Sup.Sup.message; (*T10_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_49)); if (T11_) nimGCunrefNoCycle(T11_); asgnRef((void**) (&(*T10_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T10_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 364); }
|
|
LA8_: ;
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadOffset = payloadOffset__EqfIXRABRD085klc9c3SUgg((*rlp));
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T12_ = (NI)0; T12_ = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3((*rlp)); (void)(T12_);
|
|
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt((*rlp).position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_89)) { raiseOverflow(); }; (*rlp).position = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_89); }
|
|
LA3_: ;
|
|
return result;}
|
|
|
|
#line 313 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, readImpl__3gwDJx85XFY72DHpCoRzTA)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, tyArray__vEOa9c5qaE9ajWxR5R4zwfQg Result) { tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* bytes; NI T15_; chckNil((void*)Result); nimZeroMem((void*)Result, sizeof(tyArray__vEOa9c5qaE9ajWxR5R4zwfQg));
|
|
#line 317 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T3_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T6_; NimStringDesc* T7_;
|
|
#line 317 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 317 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 317 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = isBlob__ub0XDNtFyV4Db7AJQ9aczBw_4((*rlp)); if (!!(T3_)) goto LA4_;
|
|
T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T6_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T6_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T7_ = (NimStringDesc*)0; T7_ = (*T6_).Sup.Sup.Sup.message; (*T6_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_54)); if (T7_) nimGCunrefNoCycle(T7_); asgnRef((void**) (&(*T6_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 318 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T6_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 318); }
|
|
LA4_: ;
|
|
|
|
#line 320 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 320 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
bytes = toBytes__GlivWos7Cy9coi2uRKRYdLg((*rlp));
|
|
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI T10_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T13_; NimStringDesc* T14_;
|
|
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T10_ = (bytes ? bytes->Sup.len : 0); if (!!((((NI) 32) == T10_))) goto LA11_;
|
|
T13_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T13_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T13_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T13_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T14_ = (NimStringDesc*)0; T14_ = (*T13_).Sup.Sup.Sup.message; (*T13_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_59)); if (T14_) nimGCunrefNoCycle(T14_); asgnRef((void**) (&(*T13_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 322 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T13_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 322); }
|
|
LA11_: ;
|
|
|
|
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if ((NU)(((NI) 0)) >= (NU)(bytes ? bytes->Sup.len : 0)){ raiseIndexError2(((NI) 0),(bytes ? bytes->Sup.len : 0)-1); }
|
|
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T15_ = (bytes ? bytes->Sup.len : 0); if ((T15_) < ((NI) 0) || (T15_) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(T15_, ((NI) 0), ((NI) IL64(9223372036854775807))); }
|
|
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&Result[(((NI) 0))- 0]))), ((void*) ((&bytes->data[((NI) 0)]))), ((NI) (T15_)));
|
|
|
|
#line 326 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 326 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
skipElem__8ZqaueEfG6l7Lij1Qr1R9cA(rlp);
|
|
}
|
|
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/trie/trie_defs.nim"
|
|
static N_INLINE(tyObject_MDigest__law9ct65KplMYBvtmjCQxbw, read__LGLrSCyIXRw9cbF9cUuTFYlQtrie_defs)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp) { tyObject_MDigest__law9ct65KplMYBvtmjCQxbw result; nimZeroMem((void*)(&result), sizeof(tyObject_MDigest__law9ct65KplMYBvtmjCQxbw));
|
|
#line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/trie/trie_defs.nim"
|
|
|
|
#line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/trie/trie_defs.nim"
|
|
readImpl__3gwDJx85XFY72DHpCoRzTA(rlp, result.data);
|
|
return result;}
|
|
|
|
#line 358 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, readImpl__b8P89ctKkE6AT44kQKObtgA)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp, NIM_BOOL wrappedInList, tyObject_p2pRequestCompleteObj__1UIW05hLGQYGQpXIhfh9cog* Result) { NI T1_; NI T2_; chckNil((void*)Result); T1_ = (NI)0; for (T1_ = 0; T1_ < 32; T1_++) { (*Result).requestId.data[T1_] = 0; }
|
|
T2_ = (NI)0; for (T2_ = 0; T2_ < 32; T2_++) { (*Result).lastEnvelopeHash.data[T2_] = 0; }
|
|
unsureAsgnRef((void**)&(*Result).cursor, NIM_NIL);
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI payloadOffset; NI T14_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_90; if (!wrappedInList) goto LA5_;
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T9_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T12_; NimStringDesc* T13_;
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T9_ = (NIM_BOOL)0; T9_ = isList__ub0XDNtFyV4Db7AJQ9aczBw((*rlp)); if (!!(T9_)) goto LA10_;
|
|
T12_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T12_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T12_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T12_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T13_ = (NimStringDesc*)0; T13_ = (*T12_).Sup.Sup.Sup.message; (*T12_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_49)); if (T13_) nimGCunrefNoCycle(T13_); asgnRef((void**) (&(*T12_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T12_, "RlpTypeMismatch", "readImpl", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 364); }
|
|
LA10_: ;
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadOffset = payloadOffset__EqfIXRABRD085klc9c3SUgg((*rlp));
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T14_ = (NI)0; T14_ = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3((*rlp)); (void)(T14_);
|
|
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt((*rlp).position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_90)) { raiseOverflow(); }; (*rlp).position = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_90); }
|
|
LA5_: ;
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
(*Result).requestId = read__LGLrSCyIXRw9cbF9cUuTFYlQtrie_defs(rlp);
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
(*Result).lastEnvelopeHash = read__LGLrSCyIXRw9cbF9cUuTFYlQtrie_defs(rlp);
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
unsureAsgnRef((void**) (&(*Result).cursor), readImpl__5cVFIvCNHjlpY49bCCOY9czQ(rlp));}
|
|
|
|
#line 422 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, append__7c9bAIt0G0h7H89b5CUmtIww)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* writer, tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA rlp) { NI T1_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_91;
|
|
#line 423 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 51 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 51 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 51 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T1_ = (NI)0; T1_ = currentElemEnd__EqfIXRABRD085klc9c3SUgg_4(rlp); if (nimSubInt(T1_, ((NI) 1), &TM__WaXqGRAfVeSDXlS9cwIpbgg_91)) { raiseOverflow(); }; if ((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_91)-rlp.position != -1 && ((NU)(rlp.position) >= (NU)(rlp.bytes ? rlp.bytes->Sup.len : 0) || (NU)((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_91)) >= (NU)(rlp.bytes ? rlp.bytes->Sup.len : 0))){ raiseIndexError(); }
|
|
#line 423 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
appendRawBytes__gEd4nMbHvCuWTUcwgvzU9cA_2(writer, (NU8*)rlp.bytes->data+(rlp.position), ((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_91))-(rlp.position)+1);
|
|
}
|
|
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, rlpFromBytes__sID1jdK1TDDl4MyhPZIesQ)(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* data_0, tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* Result) {
|
|
#line 35 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
chckNil((void*)Result); unsureAsgnRef((void**)&(*Result).bytes, NIM_NIL); (*Result).position = 0; genericSeqAssign((&(*Result).bytes), data_0, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_)); (*Result).position = ((NI) 0);}
|
|
|
|
#line 149 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI, blobLen__EqfIXRABRD085klc9c3SUgg_6)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self) { NI result; result = (NI)0;
|
|
#line 150 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 150 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T3_;
|
|
#line 150 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 150 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = isBlob__ub0XDNtFyV4Db7AJQ9aczBw_4(self); if (!T3_) goto LA4_;
|
|
|
|
#line 150 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 150 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3(self); }
|
|
goto LA1_;
|
|
LA4_: ;
|
|
{ result = ((NI) 0); }
|
|
LA1_: ;
|
|
return result;}
|
|
|
|
#line 459 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA, dotdot___xNR8BVBMWzS9bXXNMikmyLgsystem)(NI a, NI b) { tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA result; nimZeroMem((void*)(&result), sizeof(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA));
|
|
#line 469 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
chckNil((void*)(&result)); nimZeroMem((void*)(&result), sizeof(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA)); result.a = a; result.b = b; return result;}
|
|
|
|
#line 261 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, listElem__VEGbaY9aCZqSUrGp7OclNRg)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self, NI i, tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* Result) { NI payloadOffset; tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* payload; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_95; tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA T13_; NI pos;
|
|
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T3_;
|
|
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = isList__ub0XDNtFyV4Db7AJQ9aczBw(self); if (!!(T3_)) goto LA4_;
|
|
|
|
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_92));
|
|
}
|
|
LA4_: ;
|
|
|
|
#line 264 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 264 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadOffset = payloadOffset__EqfIXRABRD085klc9c3SUgg(self);
|
|
#line 268 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NI T8_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_93; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_94; tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ* T11_; NimStringDesc* T12_;
|
|
#line 268 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 268 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T8_ = (self.bytes ? self.bytes->Sup.len : 0);
|
|
#line 268 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 268 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(self.position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_93)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_93), ((NI) 1), &TM__WaXqGRAfVeSDXlS9cwIpbgg_94)) { raiseOverflow(); }; if (!(T8_ < (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_94))) goto LA9_;
|
|
T11_ = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*)0; T11_ = (tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*) newObj((&NTI__0geplitlq7F5N3ksbgvhVA_), sizeof(tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ)); (*T11_).Sup.Sup.Sup.Sup.m_type = (&NTI__6cXDdh17tBlXcW9cVhgAVfQ_); (*T11_).Sup.Sup.Sup.name = "MalformedRlpError"; T12_ = (NimStringDesc*)0; T12_ = (*T11_).Sup.Sup.Sup.message; (*T11_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_10)); if (T12_) nimGCunrefNoCycle(T12_); asgnRef((void**) (&(*T11_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 268 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T11_, "MalformedRlpError", "listElem", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 268); }
|
|
LA9_: ;
|
|
|
|
#line 270 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 270 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 270 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(self.position, payloadOffset, &TM__WaXqGRAfVeSDXlS9cwIpbgg_95)) { raiseOverflow(); };
|
|
#line 270 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T13_ = dotdot___xNR8BVBMWzS9bXXNMikmyLgsystem((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_95), ((NI) 1));
|
|
#line 270 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payload = X5BX5D___wOb6H4KHZySddEgq9c9cTBTQ(self.bytes->data, (self.bytes ? self.bytes->Sup.len : 0), T13_);
|
|
#line 271 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 271 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
rlpFromBytes__sID1jdK1TDDl4MyhPZIesQ(payload, Result);
|
|
|
|
#line 272 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
pos = ((NI) 0); {
|
|
#line 273 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
while (1) { NIM_BOOL T16_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_96;
|
|
#line 273 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T16_ = (NIM_BOOL)0;
|
|
#line 273 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T16_ = (pos < i); if (!(T16_)) goto LA17_;
|
|
|
|
#line 273 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 273 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T16_ = hasData__ub0XDNtFyV4Db7AJQ9aczBw_2((*Result)); LA17_: ;
|
|
if (!T16_) goto LA15;
|
|
|
|
#line 274 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 274 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
(*Result).position = currentElemEnd__EqfIXRABRD085klc9c3SUgg_4((*Result));
|
|
#line 275 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(pos, ((NI) 1), &TM__WaXqGRAfVeSDXlS9cwIpbgg_96)) { raiseOverflow(); }; pos = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_96); } LA15: ;
|
|
}
|
|
}
|
|
|
|
#line 170 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI32, toInt__OqEhXXCteCZmqrn2WeUZdg)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self) { NI32 result; NI payloadStart; NI payloadSize; result = (NI32)0;
|
|
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T3_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T6_; NimStringDesc* T7_;
|
|
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = hasData__ub0XDNtFyV4Db7AJQ9aczBw_2(self); if (!!(T3_)) goto LA4_;
|
|
T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T6_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T6_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T7_ = (NimStringDesc*)0; T7_ = (*T6_).Sup.Sup.Sup.message; (*T6_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_6)); if (T7_) nimGCunrefNoCycle(T7_); asgnRef((void**) (&(*T6_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 178 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T6_, "RlpTypeMismatch", "toInt", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 178); }
|
|
LA4_: ;
|
|
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T10_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T13_; NimStringDesc* T14_;
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T10_ = (NIM_BOOL)0; T10_ = isList__ub0XDNtFyV4Db7AJQ9aczBw(self); if (!T10_) goto LA11_;
|
|
T13_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T13_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T13_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T13_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T14_ = (NimStringDesc*)0; T14_ = (*T13_).Sup.Sup.Sup.message; (*T13_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_7)); if (T14_) nimGCunrefNoCycle(T14_); asgnRef((void**) (&(*T13_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T13_, "RlpTypeMismatch", "toInt", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 181); }
|
|
LA11_: ;
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadStart = payloadOffset__EqfIXRABRD085klc9c3SUgg(self);
|
|
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadSize = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3(self);
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T19_; NimStringDesc* T20_;
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (!(((NI) 4) < payloadSize)) goto LA17_;
|
|
T19_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T19_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T19_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T19_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T20_ = (NimStringDesc*)0; T20_ = (*T19_).Sup.Sup.Sup.message; (*T19_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_27)); if (T20_) nimGCunrefNoCycle(T20_); asgnRef((void**) (&(*T19_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T19_, "RlpTypeMismatch", "toInt", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 188); }
|
|
LA17_: ;
|
|
{ NI i; NI colontmp_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_97; NI i_2; i = (NI)0; colontmp_ = (NI)0;
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(payloadStart, payloadSize, &TM__WaXqGRAfVeSDXlS9cwIpbgg_97)) { raiseOverflow(); }; colontmp_ = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_97);
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
i_2 = payloadStart; {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__WaXqGRAfVeSDXlS9cwIpbgg_98; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_99;
|
|
#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 LA23;
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
i = i_2;
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(self.position, i, &TM__WaXqGRAfVeSDXlS9cwIpbgg_98)) { raiseOverflow(); }; if ((NU)((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_98)) >= (NU)(self.bytes ? self.bytes->Sup.len : 0)){ raiseIndexError2((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_98),(self.bytes ? self.bytes->Sup.len : 0)-1); } result = (NI32)((NI32)((NU64)(result) << (NU64)(((NI) 8))) | ((NI32) (self.bytes->data[(NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_98)])));
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(i_2, ((NI) 1), &TM__WaXqGRAfVeSDXlS9cwIpbgg_99)) { raiseOverflow(); }; i_2 = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_99); } LA23: ;
|
|
}
|
|
}
|
|
return result;}
|
|
|
|
#line 289 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI32, readImpl__aWWjFY4G9b7z3YZzWsX9aYpA)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* rlp) { NI32 result; result = (NI32)0;
|
|
#line 290 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 290 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
result = toInt__OqEhXXCteCZmqrn2WeUZdg((*rlp));
|
|
#line 291 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 291 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
skipElem__8ZqaueEfG6l7Lij1Qr1R9cA(rlp);
|
|
return result;}
|
|
static N_NIMCALL(void, Marker_tyRef__xdcI6Mkp9cS0FReoFduSNKQ)(void* p, NI op) {
|
|
tyObject_RlpError__ENkbLoxFdDxL9aDUnEQeCuw* a;
|
|
a = (tyObject_RlpError__ENkbLoxFdDxL9aDUnEQeCuw*)p;
|
|
nimGCvisit((void*)(*a).Sup.Sup.parent, op); nimGCvisit((void*)(*a).Sup.Sup.message, op); nimGCvisit((void*)(*a).Sup.Sup.trace, op); nimGCvisit((void*)(*a).Sup.Sup.up, op);}
|
|
|
|
#line 37 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, rlpFromBytes__rU4W9amjt55PGLyJY2jtc6A)(NU8* data_0, NI data_0Len_0, tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA* Result) { tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* T1_;
|
|
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T1_ = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*)0; T1_ = at___FKhCG9aXnVoTuyjERVXzd2g(data_0, data_0Len_0);
|
|
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
rlpFromBytes__sID1jdK1TDDl4MyhPZIesQ(T1_, Result);
|
|
}
|
|
|
|
#line 170 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NU16, toInt__k46Eva1XIvi6HGGZZjSNGw)(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA self) { NU16 result; NI payloadStart; NI payloadSize; result = (NU16)0;
|
|
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T3_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T6_; NimStringDesc* T7_;
|
|
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = hasData__ub0XDNtFyV4Db7AJQ9aczBw_2(self); if (!!(T3_)) goto LA4_;
|
|
T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T6_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T6_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T6_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T7_ = (NimStringDesc*)0; T7_ = (*T6_).Sup.Sup.Sup.message; (*T6_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_6)); if (T7_) nimGCunrefNoCycle(T7_); asgnRef((void**) (&(*T6_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 178 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T6_, "RlpTypeMismatch", "toInt", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 178); }
|
|
LA4_: ;
|
|
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ NIM_BOOL T10_; tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T13_; NimStringDesc* T14_;
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
T10_ = (NIM_BOOL)0; T10_ = isList__ub0XDNtFyV4Db7AJQ9aczBw(self); if (!T10_) goto LA11_;
|
|
T13_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T13_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T13_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T13_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T14_ = (NimStringDesc*)0; T14_ = (*T13_).Sup.Sup.Sup.message; (*T13_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_7)); if (T14_) nimGCunrefNoCycle(T14_); asgnRef((void**) (&(*T13_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T13_, "RlpTypeMismatch", "toInt", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 181); }
|
|
LA11_: ;
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadStart = payloadOffset__EqfIXRABRD085klc9c3SUgg(self);
|
|
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
payloadSize = payloadBytesCount__EqfIXRABRD085klc9c3SUgg_3(self);
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
{ tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw* T19_; NimStringDesc* T20_;
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (!(((NI) 2) < payloadSize)) goto LA17_;
|
|
T19_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*)0; T19_ = (tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*) newObj((&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_), sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw)); (*T19_).Sup.Sup.Sup.Sup.m_type = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_); (*T19_).Sup.Sup.Sup.name = "RlpTypeMismatch"; T20_ = (NimStringDesc*)0; T20_ = (*T19_).Sup.Sup.Sup.message; (*T19_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__WaXqGRAfVeSDXlS9cwIpbgg_27)); if (T20_) nimGCunrefNoCycle(T20_); asgnRef((void**) (&(*T19_).Sup.Sup.Sup.parent), NIM_NIL);
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
raiseExceptionEx((Exception*)T19_, "RlpTypeMismatch", "toInt", "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim", 188); }
|
|
LA17_: ;
|
|
{ NI i; NI colontmp_; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_100; NI i_2; i = (NI)0; colontmp_ = (NI)0;
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(payloadStart, payloadSize, &TM__WaXqGRAfVeSDXlS9cwIpbgg_100)) { raiseOverflow(); }; colontmp_ = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_100);
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
i_2 = payloadStart; {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__WaXqGRAfVeSDXlS9cwIpbgg_101; NI TM__WaXqGRAfVeSDXlS9cwIpbgg_102;
|
|
#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 LA23;
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
i = i_2;
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp.nim"
|
|
if (nimAddInt(self.position, i, &TM__WaXqGRAfVeSDXlS9cwIpbgg_101)) { raiseOverflow(); }; if ((NU)((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_101)) >= (NU)(self.bytes ? self.bytes->Sup.len : 0)){ raiseIndexError2((NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_101),(self.bytes ? self.bytes->Sup.len : 0)-1); } result = (NU16)((NU16)((NU64)(result) << (NU64)(((NI) 8))) | ((NU16) (self.bytes->data[(NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_101)])));
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(i_2, ((NI) 1), &TM__WaXqGRAfVeSDXlS9cwIpbgg_102)) { raiseOverflow(); }; i_2 = (NI)(TM__WaXqGRAfVeSDXlS9cwIpbgg_102); } LA23: ;
|
|
}
|
|
}
|
|
return result;}
|
|
N_LIB_PRIVATE N_NIMCALL(void, eth_rlpDatInit000)(void) {
|
|
|
|
#line 999999 "generated_not_to_break_here"
|
|
static TNimNode* TM__WaXqGRAfVeSDXlS9cwIpbgg_2_2[2];
|
|
static TNimNode TM__WaXqGRAfVeSDXlS9cwIpbgg_0[7];NTI__hcsVkUqjm9aqE9bK87khEjnA_.size = sizeof(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA);
|
|
NTI__hcsVkUqjm9aqE9bK87khEjnA_.kind = 18;
|
|
NTI__hcsVkUqjm9aqE9bK87khEjnA_.base = 0;
|
|
NTI__hcsVkUqjm9aqE9bK87khEjnA_.flags = 2;
|
|
NTI__hcsVkUqjm9aqE9bK87khEjnA_.name = "Rlp";
|
|
NTI__hcsVkUqjm9aqE9bK87khEjnA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__hcsVkUqjm9aqE9bK87khEjnA_;
|
|
TM__WaXqGRAfVeSDXlS9cwIpbgg_2_2[0] = &TM__WaXqGRAfVeSDXlS9cwIpbgg_0[1];
|
|
NTI__6H5Oh5UUvVCLiakt9aTwtUQ_.size = sizeof(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*);
|
|
NTI__6H5Oh5UUvVCLiakt9aTwtUQ_.kind = 24;
|
|
NTI__6H5Oh5UUvVCLiakt9aTwtUQ_.base = (&NTI__k3HXouOuhqAKq0dx450lXQ_);
|
|
NTI__6H5Oh5UUvVCLiakt9aTwtUQ_.flags = 2;
|
|
NTI__6H5Oh5UUvVCLiakt9aTwtUQ_.name = "seq[byte]";
|
|
NTI__6H5Oh5UUvVCLiakt9aTwtUQ_.nextType = nimTypeRoot; nimTypeRoot=&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_;
|
|
NTI__6H5Oh5UUvVCLiakt9aTwtUQ_.marker = Marker_tySequence__6H5Oh5UUvVCLiakt9aTwtUQ;
|
|
TM__WaXqGRAfVeSDXlS9cwIpbgg_0[1].kind = 1;
|
|
TM__WaXqGRAfVeSDXlS9cwIpbgg_0[1].offset = offsetof(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA, bytes);
|
|
TM__WaXqGRAfVeSDXlS9cwIpbgg_0[1].typ = (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_);
|
|
TM__WaXqGRAfVeSDXlS9cwIpbgg_0[1].name = "bytes";
|
|
TM__WaXqGRAfVeSDXlS9cwIpbgg_2_2[1] = &TM__WaXqGRAfVeSDXlS9cwIpbgg_0[2];
|
|
TM__WaXqGRAfVeSDXlS9cwIpbgg_0[2].kind = 1;
|
|
TM__WaXqGRAfVeSDXlS9cwIpbgg_0[2].offset = offsetof(tyObject_Rlp__hcsVkUqjm9aqE9bK87khEjnA, position);
|
|
TM__WaXqGRAfVeSDXlS9cwIpbgg_0[2].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
|
|
TM__WaXqGRAfVeSDXlS9cwIpbgg_0[2].name = "position";
|
|
TM__WaXqGRAfVeSDXlS9cwIpbgg_0[0].len = 2; TM__WaXqGRAfVeSDXlS9cwIpbgg_0[0].kind = 2; TM__WaXqGRAfVeSDXlS9cwIpbgg_0[0].sons = &TM__WaXqGRAfVeSDXlS9cwIpbgg_2_2[0];
|
|
NTI__hcsVkUqjm9aqE9bK87khEjnA_.node = &TM__WaXqGRAfVeSDXlS9cwIpbgg_0[0];
|
|
NTI__ENkbLoxFdDxL9aDUnEQeCuw_.size = sizeof(tyObject_RlpError__ENkbLoxFdDxL9aDUnEQeCuw);
|
|
NTI__ENkbLoxFdDxL9aDUnEQeCuw_.kind = 17;
|
|
NTI__ENkbLoxFdDxL9aDUnEQeCuw_.base = (&NTI__qrLSDoe2oBoAqNtJ9badtnA_);
|
|
NTI__ENkbLoxFdDxL9aDUnEQeCuw_.name = "RlpError";
|
|
NTI__ENkbLoxFdDxL9aDUnEQeCuw_.nextType = nimTypeRoot; nimTypeRoot=&NTI__ENkbLoxFdDxL9aDUnEQeCuw_;
|
|
TM__WaXqGRAfVeSDXlS9cwIpbgg_0[3].len = 0; TM__WaXqGRAfVeSDXlS9cwIpbgg_0[3].kind = 2;
|
|
NTI__ENkbLoxFdDxL9aDUnEQeCuw_.node = &TM__WaXqGRAfVeSDXlS9cwIpbgg_0[3];
|
|
NTI__NsCD7z47L1f4u9aMLVOwnJw_.size = sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw);
|
|
NTI__NsCD7z47L1f4u9aMLVOwnJw_.kind = 17;
|
|
NTI__NsCD7z47L1f4u9aMLVOwnJw_.base = (&NTI__ENkbLoxFdDxL9aDUnEQeCuw_);
|
|
NTI__NsCD7z47L1f4u9aMLVOwnJw_.name = "RlpTypeMismatch";
|
|
NTI__NsCD7z47L1f4u9aMLVOwnJw_.nextType = nimTypeRoot; nimTypeRoot=&NTI__NsCD7z47L1f4u9aMLVOwnJw_;
|
|
TM__WaXqGRAfVeSDXlS9cwIpbgg_0[4].len = 0; TM__WaXqGRAfVeSDXlS9cwIpbgg_0[4].kind = 2;
|
|
NTI__NsCD7z47L1f4u9aMLVOwnJw_.node = &TM__WaXqGRAfVeSDXlS9cwIpbgg_0[4];
|
|
NTI__9bHsEvciCZBKDZ5GE9cRsmlg_.size = sizeof(tyObject_RlpTypeMismatch__NsCD7z47L1f4u9aMLVOwnJw*);
|
|
NTI__9bHsEvciCZBKDZ5GE9cRsmlg_.kind = 22;
|
|
NTI__9bHsEvciCZBKDZ5GE9cRsmlg_.base = (&NTI__NsCD7z47L1f4u9aMLVOwnJw_);
|
|
NTI__9bHsEvciCZBKDZ5GE9cRsmlg_.name = "ref RlpTypeMismatch";
|
|
NTI__9bHsEvciCZBKDZ5GE9cRsmlg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__9bHsEvciCZBKDZ5GE9cRsmlg_;
|
|
NTI__9bHsEvciCZBKDZ5GE9cRsmlg_.marker = Marker_tyRef__9bHsEvciCZBKDZ5GE9cRsmlg;
|
|
NTI__6cXDdh17tBlXcW9cVhgAVfQ_.size = sizeof(tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ);
|
|
NTI__6cXDdh17tBlXcW9cVhgAVfQ_.kind = 17;
|
|
NTI__6cXDdh17tBlXcW9cVhgAVfQ_.base = (&NTI__ENkbLoxFdDxL9aDUnEQeCuw_);
|
|
NTI__6cXDdh17tBlXcW9cVhgAVfQ_.name = "MalformedRlpError";
|
|
NTI__6cXDdh17tBlXcW9cVhgAVfQ_.nextType = nimTypeRoot; nimTypeRoot=&NTI__6cXDdh17tBlXcW9cVhgAVfQ_;
|
|
TM__WaXqGRAfVeSDXlS9cwIpbgg_0[5].len = 0; TM__WaXqGRAfVeSDXlS9cwIpbgg_0[5].kind = 2;
|
|
NTI__6cXDdh17tBlXcW9cVhgAVfQ_.node = &TM__WaXqGRAfVeSDXlS9cwIpbgg_0[5];
|
|
NTI__0geplitlq7F5N3ksbgvhVA_.size = sizeof(tyObject_MalformedRlpError__6cXDdh17tBlXcW9cVhgAVfQ*);
|
|
NTI__0geplitlq7F5N3ksbgvhVA_.kind = 22;
|
|
NTI__0geplitlq7F5N3ksbgvhVA_.base = (&NTI__6cXDdh17tBlXcW9cVhgAVfQ_);
|
|
NTI__0geplitlq7F5N3ksbgvhVA_.name = "ref MalformedRlpError";
|
|
NTI__0geplitlq7F5N3ksbgvhVA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__0geplitlq7F5N3ksbgvhVA_;
|
|
NTI__0geplitlq7F5N3ksbgvhVA_.marker = Marker_tyRef__0geplitlq7F5N3ksbgvhVA;
|
|
NTI__Jr2f1AYBA9a9aer9akHZeOi5A_.size = sizeof(tyObject_UnsupportedRlpError__Jr2f1AYBA9a9aer9akHZeOi5A);
|
|
NTI__Jr2f1AYBA9a9aer9akHZeOi5A_.kind = 17;
|
|
NTI__Jr2f1AYBA9a9aer9akHZeOi5A_.base = (&NTI__ENkbLoxFdDxL9aDUnEQeCuw_);
|
|
NTI__Jr2f1AYBA9a9aer9akHZeOi5A_.name = "UnsupportedRlpError";
|
|
NTI__Jr2f1AYBA9a9aer9akHZeOi5A_.nextType = nimTypeRoot; nimTypeRoot=&NTI__Jr2f1AYBA9a9aer9akHZeOi5A_;
|
|
TM__WaXqGRAfVeSDXlS9cwIpbgg_0[6].len = 0; TM__WaXqGRAfVeSDXlS9cwIpbgg_0[6].kind = 2;
|
|
NTI__Jr2f1AYBA9a9aer9akHZeOi5A_.node = &TM__WaXqGRAfVeSDXlS9cwIpbgg_0[6];
|
|
NTI__pQej6mMEHNhZxWV0UFPK3w_.size = sizeof(tyObject_UnsupportedRlpError__Jr2f1AYBA9a9aer9akHZeOi5A*);
|
|
NTI__pQej6mMEHNhZxWV0UFPK3w_.kind = 22;
|
|
NTI__pQej6mMEHNhZxWV0UFPK3w_.base = (&NTI__Jr2f1AYBA9a9aer9akHZeOi5A_);
|
|
NTI__pQej6mMEHNhZxWV0UFPK3w_.name = "ref UnsupportedRlpError";
|
|
NTI__pQej6mMEHNhZxWV0UFPK3w_.nextType = nimTypeRoot; nimTypeRoot=&NTI__pQej6mMEHNhZxWV0UFPK3w_;
|
|
NTI__pQej6mMEHNhZxWV0UFPK3w_.marker = Marker_tyRef__pQej6mMEHNhZxWV0UFPK3w;
|
|
NTI__xdcI6Mkp9cS0FReoFduSNKQ_.size = sizeof(tyObject_RlpError__ENkbLoxFdDxL9aDUnEQeCuw*);
|
|
NTI__xdcI6Mkp9cS0FReoFduSNKQ_.kind = 22;
|
|
NTI__xdcI6Mkp9cS0FReoFduSNKQ_.base = (&NTI__ENkbLoxFdDxL9aDUnEQeCuw_);
|
|
NTI__xdcI6Mkp9cS0FReoFduSNKQ_.name = "ref RlpError";
|
|
NTI__xdcI6Mkp9cS0FReoFduSNKQ_.nextType = nimTypeRoot; nimTypeRoot=&NTI__xdcI6Mkp9cS0FReoFduSNKQ_;
|
|
NTI__xdcI6Mkp9cS0FReoFduSNKQ_.marker = Marker_tyRef__xdcI6Mkp9cS0FReoFduSNKQ;
|
|
}
|
|
|