mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-27 07:06:42 +00:00
1896 lines
113 KiB
C
1896 lines
113 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@swriter.nim.c.o nimcache/release/example/@m..@s..@svendor@snim-eth@seth@srlp@swriter.nim.c */
|
|
#define NIM_INTBITS 64
|
|
|
|
#include "nimbase.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_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ;
|
|
typedef struct tySequence__8Np6tlClE5az1CyqZdN19bQ tySequence__8Np6tlClE5az1CyqZdN19bQ;
|
|
typedef struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ tySequence__6H5Oh5UUvVCLiakt9aTwtUQ;
|
|
typedef struct TGenericSeq TGenericSeq;
|
|
typedef struct TNimType TNimType;
|
|
typedef struct TNimNode TNimNode;
|
|
typedef struct tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ;
|
|
typedef struct NimStringDesc NimStringDesc;
|
|
typedef struct tyObject_EmptyList__o9aWzeLYpWBjdkO5GBIHymA tyObject_EmptyList__o9aWzeLYpWBjdkO5GBIHymA;
|
|
typedef struct tyObject_Envelope__SvTrTIZs3cDneANW26dQlQ tyObject_Envelope__SvTrTIZs3cDneANW26dQlQ;
|
|
typedef struct tyTuple__51htdc38JQSFZzzsL2ZfjA tyTuple__51htdc38JQSFZzzsL2ZfjA;
|
|
typedef struct tyTuple__Xft2Fa3exyeFxVofKMjSzg tyTuple__Xft2Fa3exyeFxVofKMjSzg;
|
|
typedef struct tyTuple__nLqNE9cL9bBxUDukRucMTuIA tyTuple__nLqNE9cL9bBxUDukRucMTuIA;
|
|
typedef struct tyTuple__2hNiEA04J9bC12kmH01fqGg tyTuple__2hNiEA04J9bC12kmH01fqGg;
|
|
typedef struct tyObject_RateLimits__OjRLL6WUdkpMc2LsZCemYQ tyObject_RateLimits__OjRLL6WUdkpMc2LsZCemYQ;
|
|
typedef struct tyTuple__2PljAT9a5TlHYFQNuOfhYTg tyTuple__2PljAT9a5TlHYFQNuOfhYTg;
|
|
typedef struct tySequence__atzPT9bqVZh26epu1UBlGdg tySequence__atzPT9bqVZh26epu1UBlGdg;
|
|
typedef struct tyObject_DisconnectionReasonList__BSmNWxleIm9aixvwuZbOKKQ tyObject_DisconnectionReasonList__BSmNWxleIm9aixvwuZbOKKQ;
|
|
typedef struct tyObject_Capability__oMiYUJkdwZ19b9aXFIiVltLA tyObject_Capability__oMiYUJkdwZ19b9aXFIiVltLA;
|
|
typedef struct tyTuple__Boxofyx0cfbCs9baoLqmiMQ tyTuple__Boxofyx0cfbCs9baoLqmiMQ;
|
|
typedef struct tyObject_Address__x5U8qnsjGWstAJoOadUZ9aA tyObject_Address__x5U8qnsjGWstAJoOadUZ9aA;
|
|
typedef struct tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA;
|
|
typedef struct tyTuple__ip0pB3Eij9bXXLxUfAIMyIg tyTuple__ip0pB3Eij9bXXLxUfAIMyIg;
|
|
typedef struct tyObject_MDigest__law9ct65KplMYBvtmjCQxbw tyObject_MDigest__law9ct65KplMYBvtmjCQxbw;
|
|
typedef struct tyTuple__2KY7pfkFge4RCMsQ8kRGsw tyTuple__2KY7pfkFge4RCMsQ8kRGsw;
|
|
typedef struct tySequence__XiuSuFrsuhroELW874HXhA tySequence__XiuSuFrsuhroELW874HXhA;
|
|
typedef struct tyTuple__akue9c3LnOr29bcgBFD7a0Vg tyTuple__akue9c3LnOr29bcgBFD7a0Vg;
|
|
typedef struct tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA;
|
|
typedef struct tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ;
|
|
typedef struct tyTuple__gaGbVzehQOxhH9cAN1FlIyg tyTuple__gaGbVzehQOxhH9cAN1FlIyg;
|
|
struct tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ {tySequence__8Np6tlClE5az1CyqZdN19bQ* pendingLists;
|
|
tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* output;
|
|
};
|
|
struct TGenericSeq {NI len;
|
|
NI reserved;
|
|
};
|
|
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 tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ {
|
|
NI Field0;
|
|
NI Field1;
|
|
};
|
|
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
|
|
};
|
|
struct tyObject_EmptyList__o9aWzeLYpWBjdkO5GBIHymA {char dummy;
|
|
};
|
|
typedef NU8 tyArray__ekVvh9bp9cVe7STNUL8R406w[1];
|
|
typedef NU8 tyArray__H8qf9bpC2ziYA2earmO8m7w[4];
|
|
struct tyObject_Envelope__SvTrTIZs3cDneANW26dQlQ {NU32 expiry;
|
|
NU32 ttl;
|
|
tyArray__H8qf9bpC2ziYA2earmO8m7w topic;
|
|
tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* data;
|
|
NU64 nonce;
|
|
};
|
|
typedef NU8 tyEnum_KeyKind__LFXHGEuoLnHx46NkDpGMkw;
|
|
struct tyTuple__51htdc38JQSFZzzsL2ZfjA {
|
|
tyEnum_KeyKind__LFXHGEuoLnHx46NkDpGMkw Field0;
|
|
NU64 Field1;
|
|
};
|
|
struct tyTuple__Xft2Fa3exyeFxVofKMjSzg {
|
|
tyEnum_KeyKind__LFXHGEuoLnHx46NkDpGMkw Field0;
|
|
tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* Field1;
|
|
};
|
|
struct tyTuple__nLqNE9cL9bBxUDukRucMTuIA {
|
|
tyEnum_KeyKind__LFXHGEuoLnHx46NkDpGMkw Field0;
|
|
NIM_BOOL Field1;
|
|
};
|
|
struct tyObject_RateLimits__OjRLL6WUdkpMc2LsZCemYQ {NU limitIp;
|
|
NU limitPeerId;
|
|
NU limitTopic;
|
|
};
|
|
struct tyTuple__2hNiEA04J9bC12kmH01fqGg {
|
|
tyEnum_KeyKind__LFXHGEuoLnHx46NkDpGMkw Field0;
|
|
tyObject_RateLimits__OjRLL6WUdkpMc2LsZCemYQ Field1;
|
|
};
|
|
struct tyTuple__2PljAT9a5TlHYFQNuOfhYTg {
|
|
tyEnum_KeyKind__LFXHGEuoLnHx46NkDpGMkw Field0;
|
|
tySequence__atzPT9bqVZh26epu1UBlGdg* Field1;
|
|
};
|
|
typedef NU8 tyEnum_DisconnectionReason__Ub6CwrFFyWvJS0L5dDig8w;
|
|
struct tyObject_DisconnectionReasonList__BSmNWxleIm9aixvwuZbOKKQ {tyEnum_DisconnectionReason__Ub6CwrFFyWvJS0L5dDig8w value;
|
|
};
|
|
struct tyObject_Capability__oMiYUJkdwZ19b9aXFIiVltLA {NimStringDesc* name;
|
|
NI version;
|
|
};
|
|
typedef NU8 tyEnum_IpAddressFamily__iqqacz9cr9bcNjYY74E10wPA;
|
|
typedef NU8 tyArray__qtqsWM5aXmcpMIVmvq3kAA[16];
|
|
struct tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA {tyEnum_IpAddressFamily__iqqacz9cr9bcNjYY74E10wPA family;
|
|
union{
|
|
struct {tyArray__qtqsWM5aXmcpMIVmvq3kAA address_v6;
|
|
} _family_1;
|
|
struct {tyArray__H8qf9bpC2ziYA2earmO8m7w address_v4;
|
|
} _family_2;
|
|
};
|
|
};
|
|
struct tyObject_Address__x5U8qnsjGWstAJoOadUZ9aA {tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA ip;
|
|
NU16 udpPort;
|
|
NU16 tcpPort;
|
|
};
|
|
struct tyTuple__Boxofyx0cfbCs9baoLqmiMQ {
|
|
NI Field0;
|
|
tyObject_Address__x5U8qnsjGWstAJoOadUZ9aA Field1;
|
|
tyObject_Address__x5U8qnsjGWstAJoOadUZ9aA Field2;
|
|
NU32 Field3;
|
|
};
|
|
typedef NU8 tyArray__vEOa9c5qaE9ajWxR5R4zwfQg[32];
|
|
struct tyObject_MDigest__law9ct65KplMYBvtmjCQxbw {tyArray__vEOa9c5qaE9ajWxR5R4zwfQg data;
|
|
};
|
|
struct tyTuple__ip0pB3Eij9bXXLxUfAIMyIg {
|
|
tyObject_Address__x5U8qnsjGWstAJoOadUZ9aA Field0;
|
|
tyObject_MDigest__law9ct65KplMYBvtmjCQxbw Field1;
|
|
NU32 Field2;
|
|
};
|
|
typedef NU8 tyArray__w5VB8h5K8DB3oWrO5U2wqg[64];
|
|
struct tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ {tyArray__w5VB8h5K8DB3oWrO5U2wqg data;
|
|
};
|
|
struct tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA {tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ data;
|
|
};
|
|
struct tyTuple__akue9c3LnOr29bcgBFD7a0Vg {
|
|
tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA Field0;
|
|
NU16 Field1;
|
|
NU16 Field2;
|
|
tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA Field3;
|
|
};
|
|
struct tyTuple__2KY7pfkFge4RCMsQ8kRGsw {
|
|
tySequence__XiuSuFrsuhroELW874HXhA* Field0;
|
|
NU32 Field1;
|
|
};
|
|
struct tyTuple__gaGbVzehQOxhH9cAN1FlIyg {
|
|
tyArray__w5VB8h5K8DB3oWrO5U2wqg Field0;
|
|
NU32 Field1;
|
|
};
|
|
struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ { TGenericSeq Sup; NU8 data[SEQ_DECL_SIZE];};struct tySequence__8Np6tlClE5az1CyqZdN19bQ { TGenericSeq Sup; tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ data[SEQ_DECL_SIZE];};struct tySequence__atzPT9bqVZh26epu1UBlGdg { TGenericSeq Sup; tyArray__H8qf9bpC2ziYA2earmO8m7w data[SEQ_DECL_SIZE];};struct tySequence__XiuSuFrsuhroELW874HXhA { TGenericSeq Sup; tyTuple__akue9c3LnOr29bcgBFD7a0Vg data[SEQ_DECL_SIZE];};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(TGenericSeq*, incrSeqV3)(TGenericSeq* s, TNimType* typ);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, bytesNeeded__6PjdlmRtV7QF1h28qFPD9bA)(NI num);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(void, writeCount__XkrxawDe0YKcme9cSfFf0ew)(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ** bytes, NI count_0, NU8 baseMarker);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b);
|
|
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, setLengthSeqV2)(TGenericSeq* s, TNimType* typ, NI newLen);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
|
|
N_LIB_PRIVATE N_NIMCALL(void, writeBigEndian__yLNiF55MihrrLq5N4OdxEg)(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ** outStream, NI number, NI lastByteIdx, NI numberOfBytes);
|
|
static N_INLINE(void, writeBigEndian__YKhgZmJH9afBXLIkFZVby1Qwriter)(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ** outStream, NI number, NI numberOfBytes);
|
|
N_LIB_PRIVATE N_NIMCALL(void, maybeClosePendingLists__p7TA9cMcMTyROeFNIICF48Q)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self);
|
|
N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, decRet__X3e9ascUX1CY64RWcNXRxAw)(NI* n_0, NI delta);
|
|
static N_NIMCALL(void, Marker_tySequence__8Np6tlClE5az1CyqZdN19bQ)(void* p, NI op);
|
|
static N_INLINE(void, moveMem__i80o3k0SgEI5gTRCzYdyWA_2system)(void* dest_0, void* source, NI size);
|
|
N_LIB_PRIVATE N_NIMCALL(void, startList__5Z9bBFfMvK6WH8IBESuCgyA)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, NI listSize);
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRawList__gEd4nMbHvCuWTUcwgvzU9cA)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, NU8* bytes, NI bytesLen_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, add__dBX55hEvlLvqcAQw6nEieA)(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ** x_0, NU8* y_0, NI y_0Len_0);
|
|
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, initRlpWriter__t8xwIvC6oBKRxyVOLr42Og)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* Result);
|
|
static N_INLINE(void, appendImpl__vrgMFKZEcmHrXBFUUAnFTQwriter)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyObject_Envelope__SvTrTIZs3cDneANW26dQlQ* data_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRecordType__iub9bDA2TGY7LZEfzEVCqMg)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyObject_Envelope__SvTrTIZs3cDneANW26dQlQ* obj, NIM_BOOL wrapInList);
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendInt__bkkBWdJ5J3kyjgokg9anKyw)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, NU32 i);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, bytesNeeded__KP2x1ggEZQ9cbgnQ8J9alM9bw)(NU32 num);
|
|
static N_INLINE(void, writeBigEndian__sgNJAQ0rQQGLjL9cAk72GHAwriter)(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ** outStream, NU32 number, NI numberOfBytes);
|
|
N_LIB_PRIVATE N_NIMCALL(void, writeBigEndian__gXl9bCje9a6fEEDM8ceJq7eA)(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ** outStream, NU32 number, NI lastByteIdx, NI numberOfBytes);
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendImpl__xQNLfTJIKg9bWsV9b1S4Pc0Q)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, NU8* listOrBlob, NI listOrBlobLen_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendBlob__JcaNDGA8AcPy39cnlS2XOsw)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, NU8* data_0, NI data_0Len_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendBlob__etvJY2c9bhpXjTvvwwvUAtw)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, NU8* data_0, NI data_0Len_0, NU8 startMarker);
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendInt__behpqFaqOv4OkqV2ZKyCgw)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, NU64 i);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, bytesNeeded__cTYctb9a8KrH5eOp2MUqIxw)(NU64 num);
|
|
static N_INLINE(void, writeBigEndian__BOI72PVEHHPiSZ1JYaVdpAwriter)(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ** outStream, NU64 number, NI numberOfBytes);
|
|
N_LIB_PRIVATE N_NIMCALL(void, writeBigEndian__T2RS38qKXhHaiqsCuBQPpQ)(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ** outStream, NU64 number, NI lastByteIdx, NI numberOfBytes);
|
|
N_LIB_PRIVATE N_NIMCALL(void, genericSeqAssign)(void* dest_0, void* src, TNimType* mt);
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendInt__NnGAdy9aSud4YgPniLZfZ6Q)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, NI i);
|
|
static N_INLINE(void, appendImpl__OFRNgH6kIBoeD8J1BEyz5Qwriter)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyObject_RateLimits__OjRLL6WUdkpMc2LsZCemYQ data_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRecordType__Dtf2f3P3yq9cxumOHXIaE9cw)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyObject_RateLimits__OjRLL6WUdkpMc2LsZCemYQ obj, NIM_BOOL wrapInList);
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendInt__cuIQo9aTbvMQKGI7IyF5LZA)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, NU i);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, bytesNeeded__Xsz6hXYeBC3VoHpLJAW7DQ)(NU num);
|
|
static N_INLINE(void, writeBigEndian__Te34f5WhnFaP3UmuWt7JyQwriter)(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ** outStream, NU number, NI numberOfBytes);
|
|
N_LIB_PRIVATE N_NIMCALL(void, writeBigEndian__Vy4fx7Yz8L8KYsYfdTpB0A)(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ** outStream, NU number, NI lastByteIdx, NI numberOfBytes);
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendImpl__5nnoL9bZiTgpN7hfrMmAoUA)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyArray__H8qf9bpC2ziYA2earmO8m7w* listOrBlob, NI listOrBlobLen_0);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError)(void);
|
|
static N_INLINE(void, appendImpl__AFraDNVz1vlV9b2189cvsOnAwriter)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyObject_Capability__oMiYUJkdwZ19b9aXFIiVltLA data_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRecordType__xYTnAysfEbHGkSu5euCeAA)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyObject_Capability__oMiYUJkdwZ19b9aXFIiVltLA obj, NIM_BOOL wrapInList);
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendImpl__39aO9cP1bow9aZVjp79cgTHHpg)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, NimStringDesc* data_0);
|
|
static N_INLINE(void, appendImpl__lEKnkzPY79aYVM1XF9ck8pgAwriter)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyTuple__Boxofyx0cfbCs9baoLqmiMQ* data_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRecordType__uKjlpZwWYBYMDgAGNhEhBw)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyTuple__Boxofyx0cfbCs9baoLqmiMQ* obj, NIM_BOOL wrapInList);
|
|
static N_INLINE(void, appendImpl__a0Shw870FifkN6G7Hrymvgwriter)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyObject_Address__x5U8qnsjGWstAJoOadUZ9aA data_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRecordType__0WJaflhseCJIHLTR8TOxzA)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyObject_Address__x5U8qnsjGWstAJoOadUZ9aA obj, NIM_BOOL wrapInList);
|
|
N_LIB_PRIVATE N_NIMCALL(void, append__9a5tscgeoVMHndctguT3ONw)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* w, tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA a);
|
|
static N_INLINE(void, append__wxSD7XmldU1ncMvsVBKxNQdiscovery)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* w, NU16 p_0);
|
|
static N_INLINE(void, appendImpl__9bb1BaijB61QoFEw1ZC08Kwwriter)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyTuple__ip0pB3Eij9bXXLxUfAIMyIg* data_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRecordType__Th64XhN04pATi8jat7cfPw)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyTuple__ip0pB3Eij9bXXLxUfAIMyIg* obj, NIM_BOOL wrapInList);
|
|
static N_INLINE(void, append__WFZNTsMg31uKeJ4PfOlojwdiscovery)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* w, tyObject_MDigest__law9ct65KplMYBvtmjCQxbw* h_0);
|
|
static N_INLINE(void, appendImpl__0PPgxQFv6kv9bJw9akgwjtXAwriter)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyTuple__2KY7pfkFge4RCMsQ8kRGsw data_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRecordType__qOFugGi1W0W7dwvmkU3y7w)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyTuple__2KY7pfkFge4RCMsQ8kRGsw obj, NIM_BOOL wrapInList);
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendImpl__8emyuYsMuDNOZdB6R8LU9cA)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyTuple__akue9c3LnOr29bcgBFD7a0Vg* listOrBlob, NI listOrBlobLen_0);
|
|
static N_INLINE(void, appendImpl__pxIeF8rhLyCeMyTMddqB8Awriter)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyTuple__akue9c3LnOr29bcgBFD7a0Vg* data_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRecordType__DJtlIA781eSNFNrZIs0erw)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyTuple__akue9c3LnOr29bcgBFD7a0Vg* obj, NIM_BOOL wrapInList);
|
|
static N_INLINE(void, append__ggSQABUXe7chEMlz9b8cqHAdiscovery)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* w, tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA* pk);
|
|
N_LIB_PRIVATE N_NIMCALL(void, toRaw__W9bYIkOOHQ8dZSTz9aIjEPEQ)(tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA* pubkey, tyArray__w5VB8h5K8DB3oWrO5U2wqg Result);
|
|
static N_INLINE(void, appendImpl__vAorBTF9cJi5dreAFo1ziSQwriter)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyTuple__gaGbVzehQOxhH9cAN1FlIyg* data_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRecordType__nMRaD6zbEaYd9b3mxJHWARA)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyTuple__gaGbVzehQOxhH9cAN1FlIyg* obj, NIM_BOOL wrapInList);
|
|
extern TNimType NTI__6H5Oh5UUvVCLiakt9aTwtUQ_;
|
|
STRING_LITERAL(TM__S3OP70HFZ7qkW9a0S28EdEA_12, "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writ"
|
|
"er.nim(75, 14) `self.pendingLists[lastListIdx].remainingItems >="
|
|
" 1` ", 131);
|
|
N_LIB_PRIVATE TNimType NTI__1v9bKyksXWMsm0vNwmZ4EuQ_;
|
|
extern TNimType NTI__rR5Bzr1D5krxoo1NcNyeMA_;
|
|
N_LIB_PRIVATE TNimType NTI__8Np6tlClE5az1CyqZdN19bQ_;
|
|
STRING_LITERAL(TM__S3OP70HFZ7qkW9a0S28EdEA_33, "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writ"
|
|
"er.nim(221, 12) `writer.pendingLists.len == 0` Insufficient numb"
|
|
"er of elements written to a started list", 167);
|
|
extern TNimType* nimTypeRoot;
|
|
|
|
#line 64 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, initRlpWriter__t8xwIvC6oBKRxyVOLr42Og)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* Result) { chckNil((void*)Result); unsureAsgnRef((void**)&(*Result).pendingLists, NIM_NIL); unsureAsgnRef((void**)&(*Result).output, NIM_NIL);
|
|
#line 65 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
unsureAsgnRef((void**) (&(*Result).pendingLists), NIM_NIL);
|
|
#line 66 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
unsureAsgnRef((void**) (&(*Result).output), NIM_NIL);}
|
|
|
|
#line 31 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI, bytesNeeded__6PjdlmRtV7QF1h28qFPD9bA)(NI num) { NI result; NI n_1; result = (NI)0;
|
|
#line 33 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
n_1 = num; {
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
while (1) { NI TM__S3OP70HFZ7qkW9a0S28EdEA_2;
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (!!((n_1 == ((NI) 0)))) goto LA2;
|
|
|
|
#line 35 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (nimAddInt(result, ((NI) 1), &TM__S3OP70HFZ7qkW9a0S28EdEA_2)) { raiseOverflow(); }; result = (NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_2);
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
n_1 = (NI)((NI64)(n_1) >> (NU64)(((NI) 8))); } LA2: ;
|
|
}
|
|
return result;}
|
|
|
|
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, writeBigEndian__yLNiF55MihrrLq5N4OdxEg)(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ** outStream, NI number, NI lastByteIdx, NI numberOfBytes) { NI n_1;
|
|
#line 42 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
n_1 = number; { NI i; NI colontmp_; NI TM__S3OP70HFZ7qkW9a0S28EdEA_5; NI TM__S3OP70HFZ7qkW9a0S28EdEA_6; NI res; i = (NI)0; colontmp_ = (NI)0;
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (nimSubInt(lastByteIdx, numberOfBytes, &TM__S3OP70HFZ7qkW9a0S28EdEA_5)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_5), ((NI) 1), &TM__S3OP70HFZ7qkW9a0S28EdEA_6)) { raiseOverflow(); }; colontmp_ = (NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_6);
|
|
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
res = lastByteIdx; {
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__S3OP70HFZ7qkW9a0S28EdEA_7;
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(colontmp_ <= res)) goto LA3;
|
|
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
i = res; if ((NU)(i) >= (NU)((*outStream) ? (*outStream)->Sup.len : 0)){ raiseIndexError2(i,((*outStream) ? (*outStream)->Sup.len : 0)-1); }
|
|
#line 44 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 44 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
(*outStream)->data[i] = ((NU8) ((NI)(n_1 & ((NI) 255))));
|
|
#line 45 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 45 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
n_1 = (NI)((NI64)(n_1) >> (NU64)(((NI) 8)));
|
|
#line 31 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimSubInt(res, ((NI) 1), &TM__S3OP70HFZ7qkW9a0S28EdEA_7)) { raiseOverflow(); }; res = (NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_7); } LA3: ;
|
|
}
|
|
}
|
|
}
|
|
|
|
#line 52 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, writeCount__XkrxawDe0YKcme9cSfFf0ew)(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ** bytes, NI count_0, NU8 baseMarker) {
|
|
#line 53 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ NI T5_;
|
|
#line 53 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (!(count_0 < ((NI) 56))) goto LA3_;
|
|
|
|
#line 54 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 54 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
unsureAsgnRef((void**) (&(*bytes)), (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) incrSeqV3((TGenericSeq*)((*bytes)), (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_))); T5_ = (*bytes)->Sup.len++; (*bytes)->data[T5_] = (NU8)((NU8)(baseMarker) + (NU8)(((NU8) (count_0)))); }
|
|
goto LA1_;
|
|
LA3_: ;
|
|
{ NI origLen; NI T7_; NI lenPrefixBytes; NI TM__S3OP70HFZ7qkW9a0S28EdEA_3; NI TM__S3OP70HFZ7qkW9a0S28EdEA_4; NI T8_; NI TM__S3OP70HFZ7qkW9a0S28EdEA_8;
|
|
#line 57 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 57 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
T7_ = ((*bytes) ? (*bytes)->Sup.len : 0); origLen = T7_;
|
|
#line 58 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 58 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
lenPrefixBytes = bytesNeeded__6PjdlmRtV7QF1h28qFPD9bA(count_0);
|
|
#line 60 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 60 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 60 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (nimAddInt(origLen, lenPrefixBytes, &TM__S3OP70HFZ7qkW9a0S28EdEA_3)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_3), ((NI) 1), &TM__S3OP70HFZ7qkW9a0S28EdEA_4)) { raiseOverflow(); }; if (((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_4)) < ((NI) 0) || ((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_4)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_4), ((NI) 0), ((NI) IL64(9223372036854775807))); } unsureAsgnRef((void**) (&(*bytes)), (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) setLengthSeqV2(&((*bytes))->Sup, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_), ((NI) ((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_4))))); if ((NU)(origLen) >= (NU)((*bytes) ? (*bytes)->Sup.len : 0)){ raiseIndexError2(origLen,((*bytes) ? (*bytes)->Sup.len : 0)-1); }
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
(*bytes)->data[origLen] = (NU8)((NU8)((NU8)((NU8)(baseMarker) + (NU8)(((NU8) 55)))) + (NU8)(((NU8) (lenPrefixBytes))));
|
|
#line 62 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 62 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 62 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
T8_ = ((*bytes) ? (*bytes)->Sup.len : 0); if (nimSubInt(T8_, ((NI) 1), &TM__S3OP70HFZ7qkW9a0S28EdEA_8)) { raiseOverflow(); };
|
|
#line 62 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
writeBigEndian__yLNiF55MihrrLq5N4OdxEg(bytes, count_0, (NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_8), lenPrefixBytes);
|
|
}
|
|
LA1_: ;
|
|
}
|
|
|
|
#line 47 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
static N_INLINE(void, writeBigEndian__YKhgZmJH9afBXLIkFZVby1Qwriter)(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ** outStream, NI number, NI numberOfBytes) { NI T1_; NI TM__S3OP70HFZ7qkW9a0S28EdEA_9; NI T2_; NI TM__S3OP70HFZ7qkW9a0S28EdEA_10;
|
|
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
T1_ = ((*outStream) ? (*outStream)->Sup.len : 0); if (nimAddInt(T1_, numberOfBytes, &TM__S3OP70HFZ7qkW9a0S28EdEA_9)) { raiseOverflow(); }; if (((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_9)) < ((NI) 0) || ((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_9)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_9), ((NI) 0), ((NI) IL64(9223372036854775807))); } unsureAsgnRef((void**) (&(*outStream)), (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) setLengthSeqV2(&((*outStream))->Sup, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_), ((NI) ((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_9)))));
|
|
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
T2_ = ((*outStream) ? (*outStream)->Sup.len : 0); if (nimSubInt(T2_, ((NI) 1), &TM__S3OP70HFZ7qkW9a0S28EdEA_10)) { raiseOverflow(); };
|
|
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
writeBigEndian__yLNiF55MihrrLq5N4OdxEg(outStream, number, (NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_10), numberOfBytes);
|
|
}
|
|
|
|
#line 68 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI, decRet__X3e9ascUX1CY64RWcNXRxAw)(NI* n_0, NI delta) { NI result; NI TM__S3OP70HFZ7qkW9a0S28EdEA_13;{ result = (NI)0;
|
|
#line 69 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (nimSubInt((*n_0), delta, &TM__S3OP70HFZ7qkW9a0S28EdEA_13)) { raiseOverflow(); }; (*n_0) = (NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_13);
|
|
#line 70 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 70 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
result = (*n_0); goto BeforeRet_;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
static N_NIMCALL(void, Marker_tySequence__8Np6tlClE5az1CyqZdN19bQ)(void* p, NI op) {
|
|
tySequence__8Np6tlClE5az1CyqZdN19bQ* a;
|
|
NI T1_; a = (tySequence__8Np6tlClE5az1CyqZdN19bQ*)p;
|
|
T1_ = (NI)0;}
|
|
|
|
#line 2116 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(void, moveMem__i80o3k0SgEI5gTRCzYdyWA_2system)(void* dest_0, void* source, NI size) { void* T1_;
|
|
#line 2117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
T1_ = (void*)0; T1_ = memmove(dest_0, source, ((size_t) (size)));}
|
|
|
|
#line 72 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, maybeClosePendingLists__p7TA9cMcMTyROeFNIICF48Q)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self) {{ {
|
|
#line 73 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
while (1) { NI T3_; NI lastListIdx; NI T4_; NI TM__S3OP70HFZ7qkW9a0S28EdEA_11;
|
|
#line 73 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 73 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
T3_ = ((*self).pendingLists ? (*self).pendingLists->Sup.len : 0); if (!(((NI) 0) < T3_)) goto LA2;
|
|
|
|
#line 74 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 74 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 74 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
T4_ = ((*self).pendingLists ? (*self).pendingLists->Sup.len : 0); if (nimSubInt(T4_, ((NI) 1), &TM__S3OP70HFZ7qkW9a0S28EdEA_11)) { raiseOverflow(); }; lastListIdx = (NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_11);
|
|
#line 75 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{
|
|
#line 75 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 75 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if ((NU)(lastListIdx) >= (NU)((*self).pendingLists ? (*self).pendingLists->Sup.len : 0)){ raiseIndexError2(lastListIdx,((*self).pendingLists ? (*self).pendingLists->Sup.len : 0)-1); } if (!!((((NI) 1) <= (*self).pendingLists->data[lastListIdx].Field0))) goto LA7_;
|
|
|
|
#line 75 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 75 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__S3OP70HFZ7qkW9a0S28EdEA_12));
|
|
}
|
|
LA7_: ;
|
|
|
|
#line 76 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ NI T11_; NI listStartPos; NI listLen; NI T14_; NI TM__S3OP70HFZ7qkW9a0S28EdEA_15; NI totalPrefixBytes; NI T21_; NI TM__S3OP70HFZ7qkW9a0S28EdEA_17; NI TM__S3OP70HFZ7qkW9a0S28EdEA_18;
|
|
#line 76 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 76 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if ((NU)(lastListIdx) >= (NU)((*self).pendingLists ? (*self).pendingLists->Sup.len : 0)){ raiseIndexError2(lastListIdx,((*self).pendingLists ? (*self).pendingLists->Sup.len : 0)-1); }
|
|
#line 76 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
T11_ = (NI)0; T11_ = decRet__X3e9ascUX1CY64RWcNXRxAw((&(*self).pendingLists->data[lastListIdx].Field0), ((NI) 1)); if (!(T11_ == ((NI) 0))) goto LA12_;
|
|
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if ((NU)(lastListIdx) >= (NU)((*self).pendingLists ? (*self).pendingLists->Sup.len : 0)){ raiseIndexError2(lastListIdx,((*self).pendingLists ? (*self).pendingLists->Sup.len : 0)-1); } listStartPos = (*self).pendingLists->data[lastListIdx].Field1;
|
|
#line 79 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if ((lastListIdx) < ((NI) 0) || (lastListIdx) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(lastListIdx, ((NI) 0), ((NI) IL64(9223372036854775807))); } unsureAsgnRef((void**) (&(*self).pendingLists), (tySequence__8Np6tlClE5az1CyqZdN19bQ*) setLengthSeqV2(&((*self).pendingLists)->Sup, (&NTI__8Np6tlClE5az1CyqZdN19bQ_), ((NI) (lastListIdx))));
|
|
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
T14_ = ((*self).output ? (*self).output->Sup.len : 0); if (nimSubInt(T14_, listStartPos, &TM__S3OP70HFZ7qkW9a0S28EdEA_15)) { raiseOverflow(); }; listLen = (NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_15);
|
|
#line 85 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 85 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{
|
|
#line 85 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (!(listLen < ((NI) 56))) goto LA17_;
|
|
totalPrefixBytes = ((NI) 1); }
|
|
goto LA15_;
|
|
LA17_: ;
|
|
{ NI T20_; NI TM__S3OP70HFZ7qkW9a0S28EdEA_16;
|
|
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
T20_ = (NI)0; T20_ = bytesNeeded__6PjdlmRtV7QF1h28qFPD9bA(listLen); if (nimAddInt(T20_, ((NI) 1), &TM__S3OP70HFZ7qkW9a0S28EdEA_16)) { raiseOverflow(); }; totalPrefixBytes = (NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_16); }
|
|
LA15_: ;
|
|
|
|
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
T21_ = ((*self).output ? (*self).output->Sup.len : 0); if (nimAddInt(T21_, totalPrefixBytes, &TM__S3OP70HFZ7qkW9a0S28EdEA_17)) { raiseOverflow(); }; if (((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_17)) < ((NI) 0) || ((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_17)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_17), ((NI) 0), ((NI) IL64(9223372036854775807))); } unsureAsgnRef((void**) (&(*self).output), (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) setLengthSeqV2(&((*self).output)->Sup, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_), ((NI) ((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_17)))));
|
|
#line 91 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 91 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (nimAddInt(listStartPos, totalPrefixBytes, &TM__S3OP70HFZ7qkW9a0S28EdEA_18)) { raiseOverflow(); }; if ((NU)((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_18)) >= (NU)((*self).output ? (*self).output->Sup.len : 0)){ raiseIndexError2((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_18),((*self).output ? (*self).output->Sup.len : 0)-1); } if ((NU)(listStartPos) >= (NU)((*self).output ? (*self).output->Sup.len : 0)){ raiseIndexError2(listStartPos,((*self).output ? (*self).output->Sup.len : 0)-1); } if ((listLen) < ((NI) 0) || (listLen) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(listLen, ((NI) 0), ((NI) IL64(9223372036854775807))); }
|
|
#line 91 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
moveMem__i80o3k0SgEI5gTRCzYdyWA_2system(((void*) ((&(*self).output->data[(NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_18)]))), ((void*) ((&(*self).output->data[listStartPos]))), ((NI) (listLen)));
|
|
|
|
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{
|
|
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (!(listLen < ((NI) 56))) goto LA24_;
|
|
if ((NU)(listStartPos) >= (NU)((*self).output ? (*self).output->Sup.len : 0)){ raiseIndexError2(listStartPos,((*self).output ? (*self).output->Sup.len : 0)-1); }
|
|
#line 97 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 97 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
(*self).output->data[listStartPos] = (NU8)((NU8)(((NU8) 192)) + (NU8)(((NU8) (listLen)))); }
|
|
goto LA22_;
|
|
LA24_: ;
|
|
{ NI listLenBytes; NI TM__S3OP70HFZ7qkW9a0S28EdEA_19; NI TM__S3OP70HFZ7qkW9a0S28EdEA_20;
|
|
#line 99 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 99 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (nimSubInt(totalPrefixBytes, ((NI) 1), &TM__S3OP70HFZ7qkW9a0S28EdEA_19)) { raiseOverflow(); }; listLenBytes = (NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_19); if ((NU)(listStartPos) >= (NU)((*self).output ? (*self).output->Sup.len : 0)){ raiseIndexError2(listStartPos,((*self).output ? (*self).output->Sup.len : 0)-1); }
|
|
#line 100 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 100 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
(*self).output->data[listStartPos] = (NU8)((NU8)(((NU8) 247)) + (NU8)(((NU8) (listLenBytes))));
|
|
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (nimAddInt(listStartPos, listLenBytes, &TM__S3OP70HFZ7qkW9a0S28EdEA_20)) { raiseOverflow(); };
|
|
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
writeBigEndian__yLNiF55MihrrLq5N4OdxEg((&(*self).output), listLen, (NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_20), listLenBytes);
|
|
}
|
|
LA22_: ;
|
|
}
|
|
goto LA9_;
|
|
LA12_: ;
|
|
{
|
|
#line 104 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
goto BeforeRet_;
|
|
}
|
|
LA9_: ;
|
|
} LA2: ;
|
|
}
|
|
}BeforeRet_: ;
|
|
}
|
|
|
|
#line 139 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendInt__NnGAdy9aSud4YgPniLZfZ6Q)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, NI i) {
|
|
#line 144 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ NI T5_;
|
|
#line 144 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (!(i == ((NI) 0))) goto LA3_;
|
|
|
|
#line 145 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
unsureAsgnRef((void**) (&(*self).output), (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) incrSeqV3((TGenericSeq*)((*self).output), (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_))); T5_ = (*self).output->Sup.len++; (*self).output->data[T5_] = ((NU8) 128); }
|
|
goto LA1_;
|
|
LA3_: ;
|
|
{ NI T9_;
|
|
#line 146 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (!(i < ((NI) 128))) goto LA7_;
|
|
|
|
#line 147 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
unsureAsgnRef((void**) (&(*self).output), (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) incrSeqV3((TGenericSeq*)((*self).output), (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_))); T9_ = (*self).output->Sup.len++; (*self).output->data[T9_] = ((NU8) (i)); }
|
|
goto LA1_;
|
|
LA7_: ;
|
|
{ NI bytesNeeded;
|
|
#line 149 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 149 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
bytesNeeded = bytesNeeded__6PjdlmRtV7QF1h28qFPD9bA(i);
|
|
#line 150 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 150 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
writeCount__XkrxawDe0YKcme9cSfFf0ew((&(*self).output), bytesNeeded, ((NU8) 128));
|
|
|
|
#line 151 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 151 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
writeBigEndian__YKhgZmJH9afBXLIkFZVby1Qwriter((&(*self).output), i, bytesNeeded);
|
|
}
|
|
LA1_: ;
|
|
|
|
#line 153 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 153 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
maybeClosePendingLists__p7TA9cMcMTyROeFNIICF48Q(self);
|
|
}
|
|
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRawList__gEd4nMbHvCuWTUcwgvzU9cA)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, NU8* bytes, NI bytesLen_0) {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
writeCount__XkrxawDe0YKcme9cSfFf0ew((&(*self).output), bytesLen_0, ((NU8) 192));
|
|
|
|
#line 108 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 108 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
add__dBX55hEvlLvqcAQw6nEieA((&(*self).output), bytes, bytesLen_0);
|
|
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
maybeClosePendingLists__p7TA9cMcMTyROeFNIICF48Q(self);
|
|
}
|
|
|
|
#line 115 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, startList__5Z9bBFfMvK6WH8IBESuCgyA)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, NI listSize) {
|
|
#line 116 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ tyArray__ekVvh9bp9cVe7STNUL8R406w T5_;
|
|
#line 116 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (!(listSize == ((NI) 0))) goto LA3_;
|
|
|
|
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendRawList__gEd4nMbHvCuWTUcwgvzU9cA(self, T5_, 0);
|
|
}
|
|
goto LA1_;
|
|
LA3_: ;
|
|
{ tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ T7_; NI T8_; NI T9_;
|
|
#line 119 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
T7_.Field0 = listSize;
|
|
#line 119 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
T8_ = ((*self).output ? (*self).output->Sup.len : 0); T7_.Field1 = T8_; unsureAsgnRef((void**) (&(*self).pendingLists), (tySequence__8Np6tlClE5az1CyqZdN19bQ*) incrSeqV3((TGenericSeq*)((*self).pendingLists), (&NTI__8Np6tlClE5az1CyqZdN19bQ_))); T9_ = (*self).pendingLists->Sup.len++; (*self).pendingLists->data[T9_] = T7_; }
|
|
LA1_: ;
|
|
}
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRecordType__5l4iw9bN6Z6EE9croWruFjGA)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyObject_EmptyList__o9aWzeLYpWBjdkO5GBIHymA obj, NIM_BOOL wrapInList) {
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ if (!wrapInList) goto LA3_;
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
startList__5Z9bBFfMvK6WH8IBESuCgyA(self, ((NI) 0));
|
|
}
|
|
LA3_: ;
|
|
}
|
|
|
|
#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 31 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI, bytesNeeded__KP2x1ggEZQ9cbgnQ8J9alM9bw)(NU32 num) { NI result; NU32 n_1; result = (NI)0;
|
|
#line 33 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
n_1 = num; {
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
while (1) { NI TM__S3OP70HFZ7qkW9a0S28EdEA_21;
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (!!((n_1 == ((NU32) 0)))) goto LA2;
|
|
|
|
#line 35 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (nimAddInt(result, ((NI) 1), &TM__S3OP70HFZ7qkW9a0S28EdEA_21)) { raiseOverflow(); }; result = (NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_21);
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
n_1 = (NU32)((NU32)(n_1) >> (NU64)(((NI) 8))); } LA2: ;
|
|
}
|
|
return result;}
|
|
|
|
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, writeBigEndian__gXl9bCje9a6fEEDM8ceJq7eA)(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ** outStream, NU32 number, NI lastByteIdx, NI numberOfBytes) { NU32 n_1;
|
|
#line 42 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
n_1 = number; { NI i; NI colontmp_; NI TM__S3OP70HFZ7qkW9a0S28EdEA_23; NI TM__S3OP70HFZ7qkW9a0S28EdEA_24; NI res; i = (NI)0; colontmp_ = (NI)0;
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (nimSubInt(lastByteIdx, numberOfBytes, &TM__S3OP70HFZ7qkW9a0S28EdEA_23)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_23), ((NI) 1), &TM__S3OP70HFZ7qkW9a0S28EdEA_24)) { raiseOverflow(); }; colontmp_ = (NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_24);
|
|
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
res = lastByteIdx; {
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__S3OP70HFZ7qkW9a0S28EdEA_25;
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(colontmp_ <= res)) goto LA3;
|
|
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
i = res; if ((NU)(i) >= (NU)((*outStream) ? (*outStream)->Sup.len : 0)){ raiseIndexError2(i,((*outStream) ? (*outStream)->Sup.len : 0)-1); }
|
|
#line 44 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 44 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
(*outStream)->data[i] = ((NU8) ((NU32)(n_1 & ((NU32) 255))));
|
|
#line 45 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 45 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
n_1 = (NU32)((NU32)(n_1) >> (NU64)(((NI) 8)));
|
|
#line 31 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimSubInt(res, ((NI) 1), &TM__S3OP70HFZ7qkW9a0S28EdEA_25)) { raiseOverflow(); }; res = (NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_25); } LA3: ;
|
|
}
|
|
}
|
|
}
|
|
|
|
#line 47 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
static N_INLINE(void, writeBigEndian__sgNJAQ0rQQGLjL9cAk72GHAwriter)(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ** outStream, NU32 number, NI numberOfBytes) { NI T1_; NI TM__S3OP70HFZ7qkW9a0S28EdEA_22; NI T2_; NI TM__S3OP70HFZ7qkW9a0S28EdEA_26;
|
|
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
T1_ = ((*outStream) ? (*outStream)->Sup.len : 0); if (nimAddInt(T1_, numberOfBytes, &TM__S3OP70HFZ7qkW9a0S28EdEA_22)) { raiseOverflow(); }; if (((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_22)) < ((NI) 0) || ((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_22)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_22), ((NI) 0), ((NI) IL64(9223372036854775807))); } unsureAsgnRef((void**) (&(*outStream)), (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) setLengthSeqV2(&((*outStream))->Sup, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_), ((NI) ((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_22)))));
|
|
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
T2_ = ((*outStream) ? (*outStream)->Sup.len : 0); if (nimSubInt(T2_, ((NI) 1), &TM__S3OP70HFZ7qkW9a0S28EdEA_26)) { raiseOverflow(); };
|
|
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
writeBigEndian__gXl9bCje9a6fEEDM8ceJq7eA(outStream, number, (NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_26), numberOfBytes);
|
|
}
|
|
|
|
#line 139 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendInt__bkkBWdJ5J3kyjgokg9anKyw)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, NU32 i) {
|
|
#line 144 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ NI T5_;
|
|
#line 144 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (!(i == ((NU32) 0))) goto LA3_;
|
|
|
|
#line 145 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
unsureAsgnRef((void**) (&(*self).output), (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) incrSeqV3((TGenericSeq*)((*self).output), (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_))); T5_ = (*self).output->Sup.len++; (*self).output->data[T5_] = ((NU8) 128); }
|
|
goto LA1_;
|
|
LA3_: ;
|
|
{ NI T9_;
|
|
#line 146 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (!((NU32)(i) < (NU32)(((NU32) 128)))) goto LA7_;
|
|
|
|
#line 147 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
unsureAsgnRef((void**) (&(*self).output), (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) incrSeqV3((TGenericSeq*)((*self).output), (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_))); T9_ = (*self).output->Sup.len++; (*self).output->data[T9_] = ((NU8) (i)); }
|
|
goto LA1_;
|
|
LA7_: ;
|
|
{ NI bytesNeeded;
|
|
#line 149 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 149 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
bytesNeeded = bytesNeeded__KP2x1ggEZQ9cbgnQ8J9alM9bw(i);
|
|
#line 150 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 150 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
writeCount__XkrxawDe0YKcme9cSfFf0ew((&(*self).output), bytesNeeded, ((NU8) 128));
|
|
|
|
#line 151 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 151 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
writeBigEndian__sgNJAQ0rQQGLjL9cAk72GHAwriter((&(*self).output), i, bytesNeeded);
|
|
}
|
|
LA1_: ;
|
|
|
|
#line 153 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 153 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
maybeClosePendingLists__p7TA9cMcMTyROeFNIICF48Q(self);
|
|
}
|
|
|
|
#line 121 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendBlob__etvJY2c9bhpXjTvvwwvUAtw)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, NU8* data_0, NI data_0Len_0, NU8 startMarker) {
|
|
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ NIM_BOOL T3_; NI T7_;
|
|
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
T3_ = (NIM_BOOL)0;
|
|
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
T3_ = (data_0Len_0 == ((NI) 1)); if (!(T3_)) goto LA4_;
|
|
|
|
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if ((NU)(((NI) 0)) >= (NU)(data_0Len_0)){ raiseIndexError2(((NI) 0),data_0Len_0-1); } T3_ = ((NU8)(data_0[((NI) 0)]) < (NU8)(((NU8) 128))); LA4_: ;
|
|
if (!T3_) goto LA5_;
|
|
|
|
#line 123 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if ((NU)(((NI) 0)) >= (NU)(data_0Len_0)){ raiseIndexError2(((NI) 0),data_0Len_0-1); } unsureAsgnRef((void**) (&(*self).output), (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) incrSeqV3((TGenericSeq*)((*self).output), (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_))); T7_ = (*self).output->Sup.len++; (*self).output->data[T7_] = data_0[((NI) 0)]; }
|
|
goto LA1_;
|
|
LA5_: ;
|
|
{
|
|
#line 125 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 125 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 125 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
writeCount__XkrxawDe0YKcme9cSfFf0ew((&(*self).output), data_0Len_0, startMarker);
|
|
|
|
#line 126 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 126 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
add__dBX55hEvlLvqcAQw6nEieA((&(*self).output), data_0, data_0Len_0);
|
|
}
|
|
LA1_: ;
|
|
|
|
#line 128 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 128 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
maybeClosePendingLists__p7TA9cMcMTyROeFNIICF48Q(self);
|
|
}
|
|
|
|
#line 133 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendBlob__JcaNDGA8AcPy39cnlS2XOsw)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, NU8* data_0, NI data_0Len_0) {
|
|
#line 134 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 134 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendBlob__etvJY2c9bhpXjTvvwwvUAtw(self, data_0, data_0Len_0, ((NU8) 128));
|
|
}
|
|
|
|
#line 172 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendImpl__xQNLfTJIKg9bWsV9b1S4Pc0Q)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, NU8* listOrBlob, NI listOrBlobLen_0) {
|
|
#line 178 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 178 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendBlob__JcaNDGA8AcPy39cnlS2XOsw(self, listOrBlob, listOrBlobLen_0);
|
|
}
|
|
|
|
#line 31 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI, bytesNeeded__cTYctb9a8KrH5eOp2MUqIxw)(NU64 num) { NI result; NU64 n_1; result = (NI)0;
|
|
#line 33 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
n_1 = num; {
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
while (1) { NI TM__S3OP70HFZ7qkW9a0S28EdEA_27;
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (!!((n_1 == 0ULL))) goto LA2;
|
|
|
|
#line 35 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (nimAddInt(result, ((NI) 1), &TM__S3OP70HFZ7qkW9a0S28EdEA_27)) { raiseOverflow(); }; result = (NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_27);
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
n_1 = (NU64)((NU64)(n_1) >> (NU64)(((NI) 8))); } LA2: ;
|
|
}
|
|
return result;}
|
|
|
|
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, writeBigEndian__T2RS38qKXhHaiqsCuBQPpQ)(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ** outStream, NU64 number, NI lastByteIdx, NI numberOfBytes) { NU64 n_1;
|
|
#line 42 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
n_1 = number; { NI i; NI colontmp_; NI TM__S3OP70HFZ7qkW9a0S28EdEA_29; NI TM__S3OP70HFZ7qkW9a0S28EdEA_30; NI res; i = (NI)0; colontmp_ = (NI)0;
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (nimSubInt(lastByteIdx, numberOfBytes, &TM__S3OP70HFZ7qkW9a0S28EdEA_29)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_29), ((NI) 1), &TM__S3OP70HFZ7qkW9a0S28EdEA_30)) { raiseOverflow(); }; colontmp_ = (NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_30);
|
|
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
res = lastByteIdx; {
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__S3OP70HFZ7qkW9a0S28EdEA_31;
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(colontmp_ <= res)) goto LA3;
|
|
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
i = res; if ((NU)(i) >= (NU)((*outStream) ? (*outStream)->Sup.len : 0)){ raiseIndexError2(i,((*outStream) ? (*outStream)->Sup.len : 0)-1); }
|
|
#line 44 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 44 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
(*outStream)->data[i] = ((NU8) ((NU64)(n_1 & 255ULL)));
|
|
#line 45 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 45 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
n_1 = (NU64)((NU64)(n_1) >> (NU64)(((NI) 8)));
|
|
#line 31 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimSubInt(res, ((NI) 1), &TM__S3OP70HFZ7qkW9a0S28EdEA_31)) { raiseOverflow(); }; res = (NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_31); } LA3: ;
|
|
}
|
|
}
|
|
}
|
|
|
|
#line 47 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
static N_INLINE(void, writeBigEndian__BOI72PVEHHPiSZ1JYaVdpAwriter)(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ** outStream, NU64 number, NI numberOfBytes) { NI T1_; NI TM__S3OP70HFZ7qkW9a0S28EdEA_28; NI T2_; NI TM__S3OP70HFZ7qkW9a0S28EdEA_32;
|
|
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
T1_ = ((*outStream) ? (*outStream)->Sup.len : 0); if (nimAddInt(T1_, numberOfBytes, &TM__S3OP70HFZ7qkW9a0S28EdEA_28)) { raiseOverflow(); }; if (((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_28)) < ((NI) 0) || ((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_28)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_28), ((NI) 0), ((NI) IL64(9223372036854775807))); } unsureAsgnRef((void**) (&(*outStream)), (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) setLengthSeqV2(&((*outStream))->Sup, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_), ((NI) ((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_28)))));
|
|
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
T2_ = ((*outStream) ? (*outStream)->Sup.len : 0); if (nimSubInt(T2_, ((NI) 1), &TM__S3OP70HFZ7qkW9a0S28EdEA_32)) { raiseOverflow(); };
|
|
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
writeBigEndian__T2RS38qKXhHaiqsCuBQPpQ(outStream, number, (NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_32), numberOfBytes);
|
|
}
|
|
|
|
#line 139 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendInt__behpqFaqOv4OkqV2ZKyCgw)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, NU64 i) {
|
|
#line 144 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ NI T5_;
|
|
#line 144 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (!(i == 0ULL)) goto LA3_;
|
|
|
|
#line 145 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
unsureAsgnRef((void**) (&(*self).output), (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) incrSeqV3((TGenericSeq*)((*self).output), (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_))); T5_ = (*self).output->Sup.len++; (*self).output->data[T5_] = ((NU8) 128); }
|
|
goto LA1_;
|
|
LA3_: ;
|
|
{ NI T9_;
|
|
#line 146 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (!((NU64)(i) < (NU64)(128ULL))) goto LA7_;
|
|
|
|
#line 147 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
unsureAsgnRef((void**) (&(*self).output), (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) incrSeqV3((TGenericSeq*)((*self).output), (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_))); T9_ = (*self).output->Sup.len++; (*self).output->data[T9_] = ((NU8) (i)); }
|
|
goto LA1_;
|
|
LA7_: ;
|
|
{ NI bytesNeeded;
|
|
#line 149 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 149 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
bytesNeeded = bytesNeeded__cTYctb9a8KrH5eOp2MUqIxw(i);
|
|
#line 150 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 150 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
writeCount__XkrxawDe0YKcme9cSfFf0ew((&(*self).output), bytesNeeded, ((NU8) 128));
|
|
|
|
#line 151 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 151 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
writeBigEndian__BOI72PVEHHPiSZ1JYaVdpAwriter((&(*self).output), i, bytesNeeded);
|
|
}
|
|
LA1_: ;
|
|
|
|
#line 153 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 153 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
maybeClosePendingLists__p7TA9cMcMTyROeFNIICF48Q(self);
|
|
}
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRecordType__iub9bDA2TGY7LZEfzEVCqMg)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyObject_Envelope__SvTrTIZs3cDneANW26dQlQ* obj, NIM_BOOL wrapInList) {
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ if (!wrapInList) goto LA3_;
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
startList__5Z9bBFfMvK6WH8IBESuCgyA(self, ((NI) 5));
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendInt__bkkBWdJ5J3kyjgokg9anKyw(self, (*obj).expiry);
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendInt__bkkBWdJ5J3kyjgokg9anKyw(self, (*obj).ttl);
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendImpl__xQNLfTJIKg9bWsV9b1S4Pc0Q(self, (*obj).topic, 4);
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendImpl__xQNLfTJIKg9bWsV9b1S4Pc0Q(self, (*obj).data->data, ((*obj).data ? (*obj).data->Sup.len : 0));
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendInt__behpqFaqOv4OkqV2ZKyCgw(self, (*obj).nonce);
|
|
}
|
|
|
|
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
static N_INLINE(void, appendImpl__vrgMFKZEcmHrXBFUUAnFTQwriter)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyObject_Envelope__SvTrTIZs3cDneANW26dQlQ* data_0) {
|
|
#line 199 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 199 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendRecordType__iub9bDA2TGY7LZEfzEVCqMg(self, data_0, NIM_TRUE);
|
|
}
|
|
|
|
#line 224 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, encode__T22oHIwp09bZBymMGAM9a9blg)(tyObject_Envelope__SvTrTIZs3cDneANW26dQlQ* v) { tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* result; tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ writer;{ result = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*)0; nimZeroMem((void*)(&writer), sizeof(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ));
|
|
#line 226 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 226 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
initRlpWriter__t8xwIvC6oBKRxyVOLr42Og((&writer));
|
|
|
|
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendImpl__vrgMFKZEcmHrXBFUUAnFTQwriter((&writer), v);
|
|
|
|
#line 228 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 228 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ NI T3_;
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
T3_ = (writer.pendingLists ? writer.pendingLists->Sup.len : 0); if (!!((T3_ == ((NI) 0)))) goto LA4_;
|
|
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__S3OP70HFZ7qkW9a0S28EdEA_33));
|
|
}
|
|
LA4_: ;
|
|
genericSeqAssign((&result), writer.output, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_)); goto BeforeRet_;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 215 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, initRlpList__0sGl1Ixjrp2lZVzK9aiohdQ)(NI listSize, tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* Result) {
|
|
#line 216 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 216 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
initRlpWriter__t8xwIvC6oBKRxyVOLr42Og(Result);
|
|
|
|
#line 217 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 217 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
startList__5Z9bBFfMvK6WH8IBESuCgyA(Result, listSize);
|
|
}
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRecordType__kcPAsX6r7SguUxZ3pQASbA)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyTuple__51htdc38JQSFZzzsL2ZfjA obj, NIM_BOOL wrapInList) {
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ if (!wrapInList) goto LA3_;
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
startList__5Z9bBFfMvK6WH8IBESuCgyA(self, ((NI) 2));
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendInt__NnGAdy9aSud4YgPniLZfZ6Q(self, ((NI) (obj.Field0)));
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendInt__behpqFaqOv4OkqV2ZKyCgw(self, obj.Field1);
|
|
}
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRecordType__wtwL7RGClpLKG9a3eAHiyrg)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyTuple__Xft2Fa3exyeFxVofKMjSzg obj, NIM_BOOL wrapInList) {
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ if (!wrapInList) goto LA3_;
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
startList__5Z9bBFfMvK6WH8IBESuCgyA(self, ((NI) 2));
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendInt__NnGAdy9aSud4YgPniLZfZ6Q(self, ((NI) (obj.Field0)));
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendImpl__xQNLfTJIKg9bWsV9b1S4Pc0Q(self, obj.Field1->data, (obj.Field1 ? obj.Field1->Sup.len : 0));
|
|
}
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRecordType__kUr1166xzMzlUPZpD0uRXQ)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyTuple__nLqNE9cL9bBxUDukRucMTuIA obj, NIM_BOOL wrapInList) {
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ if (!wrapInList) goto LA3_;
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
startList__5Z9bBFfMvK6WH8IBESuCgyA(self, ((NI) 2));
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendInt__NnGAdy9aSud4YgPniLZfZ6Q(self, ((NI) (obj.Field0)));
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendInt__NnGAdy9aSud4YgPniLZfZ6Q(self, ((NI) (obj.Field1)));
|
|
}
|
|
|
|
#line 31 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI, bytesNeeded__Xsz6hXYeBC3VoHpLJAW7DQ)(NU num) { NI result; NU n_1; result = (NI)0;
|
|
#line 33 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
n_1 = num; {
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
while (1) { NI TM__S3OP70HFZ7qkW9a0S28EdEA_34;
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (!!((n_1 == ((NU) 0)))) goto LA2;
|
|
|
|
#line 35 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (nimAddInt(result, ((NI) 1), &TM__S3OP70HFZ7qkW9a0S28EdEA_34)) { raiseOverflow(); }; result = (NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_34);
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
n_1 = (NU)((NU64)(n_1) >> (NU64)(((NI) 8))); } LA2: ;
|
|
}
|
|
return result;}
|
|
|
|
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, writeBigEndian__Vy4fx7Yz8L8KYsYfdTpB0A)(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ** outStream, NU number, NI lastByteIdx, NI numberOfBytes) { NU n_1;
|
|
#line 42 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
n_1 = number; { NI i; NI colontmp_; NI TM__S3OP70HFZ7qkW9a0S28EdEA_36; NI TM__S3OP70HFZ7qkW9a0S28EdEA_37; NI res; i = (NI)0; colontmp_ = (NI)0;
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (nimSubInt(lastByteIdx, numberOfBytes, &TM__S3OP70HFZ7qkW9a0S28EdEA_36)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_36), ((NI) 1), &TM__S3OP70HFZ7qkW9a0S28EdEA_37)) { raiseOverflow(); }; colontmp_ = (NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_37);
|
|
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
res = lastByteIdx; {
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__S3OP70HFZ7qkW9a0S28EdEA_38;
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(colontmp_ <= res)) goto LA3;
|
|
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
i = res; if ((NU)(i) >= (NU)((*outStream) ? (*outStream)->Sup.len : 0)){ raiseIndexError2(i,((*outStream) ? (*outStream)->Sup.len : 0)-1); }
|
|
#line 44 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 44 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
(*outStream)->data[i] = ((NU8) ((NU)(n_1 & ((NU) 255))));
|
|
#line 45 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 45 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
n_1 = (NU)((NU64)(n_1) >> (NU64)(((NI) 8)));
|
|
#line 31 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimSubInt(res, ((NI) 1), &TM__S3OP70HFZ7qkW9a0S28EdEA_38)) { raiseOverflow(); }; res = (NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_38); } LA3: ;
|
|
}
|
|
}
|
|
}
|
|
|
|
#line 47 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
static N_INLINE(void, writeBigEndian__Te34f5WhnFaP3UmuWt7JyQwriter)(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ** outStream, NU number, NI numberOfBytes) { NI T1_; NI TM__S3OP70HFZ7qkW9a0S28EdEA_35; NI T2_; NI TM__S3OP70HFZ7qkW9a0S28EdEA_39;
|
|
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
T1_ = ((*outStream) ? (*outStream)->Sup.len : 0); if (nimAddInt(T1_, numberOfBytes, &TM__S3OP70HFZ7qkW9a0S28EdEA_35)) { raiseOverflow(); }; if (((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_35)) < ((NI) 0) || ((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_35)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_35), ((NI) 0), ((NI) IL64(9223372036854775807))); } unsureAsgnRef((void**) (&(*outStream)), (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) setLengthSeqV2(&((*outStream))->Sup, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_), ((NI) ((NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_35)))));
|
|
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
T2_ = ((*outStream) ? (*outStream)->Sup.len : 0); if (nimSubInt(T2_, ((NI) 1), &TM__S3OP70HFZ7qkW9a0S28EdEA_39)) { raiseOverflow(); };
|
|
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
writeBigEndian__Vy4fx7Yz8L8KYsYfdTpB0A(outStream, number, (NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_39), numberOfBytes);
|
|
}
|
|
|
|
#line 139 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendInt__cuIQo9aTbvMQKGI7IyF5LZA)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, NU i) {
|
|
#line 144 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ NI T5_;
|
|
#line 144 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (!(i == ((NU) 0))) goto LA3_;
|
|
|
|
#line 145 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
unsureAsgnRef((void**) (&(*self).output), (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) incrSeqV3((TGenericSeq*)((*self).output), (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_))); T5_ = (*self).output->Sup.len++; (*self).output->data[T5_] = ((NU8) 128); }
|
|
goto LA1_;
|
|
LA3_: ;
|
|
{ NI T9_;
|
|
#line 146 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (!((NU64)(i) < (NU64)(((NU) 128)))) goto LA7_;
|
|
|
|
#line 147 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
unsureAsgnRef((void**) (&(*self).output), (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) incrSeqV3((TGenericSeq*)((*self).output), (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_))); T9_ = (*self).output->Sup.len++; (*self).output->data[T9_] = ((NU8) (i)); }
|
|
goto LA1_;
|
|
LA7_: ;
|
|
{ NI bytesNeeded;
|
|
#line 149 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 149 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
bytesNeeded = bytesNeeded__Xsz6hXYeBC3VoHpLJAW7DQ(i);
|
|
#line 150 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 150 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
writeCount__XkrxawDe0YKcme9cSfFf0ew((&(*self).output), bytesNeeded, ((NU8) 128));
|
|
|
|
#line 151 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 151 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
writeBigEndian__Te34f5WhnFaP3UmuWt7JyQwriter((&(*self).output), i, bytesNeeded);
|
|
}
|
|
LA1_: ;
|
|
|
|
#line 153 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 153 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
maybeClosePendingLists__p7TA9cMcMTyROeFNIICF48Q(self);
|
|
}
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRecordType__Dtf2f3P3yq9cxumOHXIaE9cw)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyObject_RateLimits__OjRLL6WUdkpMc2LsZCemYQ obj, NIM_BOOL wrapInList) {
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ if (!wrapInList) goto LA3_;
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
startList__5Z9bBFfMvK6WH8IBESuCgyA(self, ((NI) 3));
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendInt__cuIQo9aTbvMQKGI7IyF5LZA(self, obj.limitIp);
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendInt__cuIQo9aTbvMQKGI7IyF5LZA(self, obj.limitPeerId);
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendInt__cuIQo9aTbvMQKGI7IyF5LZA(self, obj.limitTopic);
|
|
}
|
|
|
|
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
static N_INLINE(void, appendImpl__OFRNgH6kIBoeD8J1BEyz5Qwriter)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyObject_RateLimits__OjRLL6WUdkpMc2LsZCemYQ data_0) {
|
|
#line 199 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 199 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendRecordType__Dtf2f3P3yq9cxumOHXIaE9cw(self, data_0, NIM_TRUE);
|
|
}
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRecordType__G0grHkD3mykiw69bA1w4EGQ)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyTuple__2hNiEA04J9bC12kmH01fqGg* obj, NIM_BOOL wrapInList) {
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ if (!wrapInList) goto LA3_;
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
startList__5Z9bBFfMvK6WH8IBESuCgyA(self, ((NI) 2));
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendInt__NnGAdy9aSud4YgPniLZfZ6Q(self, ((NI) ((*obj).Field0)));
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendImpl__OFRNgH6kIBoeD8J1BEyz5Qwriter(self, (*obj).Field1);
|
|
}
|
|
|
|
#line 172 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendImpl__5nnoL9bZiTgpN7hfrMmAoUA)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyArray__H8qf9bpC2ziYA2earmO8m7w* listOrBlob, NI listOrBlobLen_0) {
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
startList__5Z9bBFfMvK6WH8IBESuCgyA(self, listOrBlobLen_0);
|
|
{ NI i; NI colontmp_; NI i_2; i = (NI)0; colontmp_ = (NI)0;
|
|
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
colontmp_ = listOrBlobLen_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__S3OP70HFZ7qkW9a0S28EdEA_40;
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(i_2 < colontmp_)) goto LA3;
|
|
|
|
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
i = i_2;
|
|
#line 182 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if ((NU)(i) >= (NU)(listOrBlobLen_0)){ raiseIndexError2(i,listOrBlobLen_0-1); }
|
|
#line 182 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendImpl__xQNLfTJIKg9bWsV9b1S4Pc0Q(self, listOrBlob[i], 4);
|
|
|
|
#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__S3OP70HFZ7qkW9a0S28EdEA_40)) { raiseOverflow(); }; i_2 = (NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_40); } LA3: ;
|
|
}
|
|
}
|
|
}
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRecordType__SLhSLdwH59cFXiXY0ag1O6g)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyTuple__2PljAT9a5TlHYFQNuOfhYTg obj, NIM_BOOL wrapInList) {
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ if (!wrapInList) goto LA3_;
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
startList__5Z9bBFfMvK6WH8IBESuCgyA(self, ((NI) 2));
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendInt__NnGAdy9aSud4YgPniLZfZ6Q(self, ((NI) (obj.Field0)));
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendImpl__5nnoL9bZiTgpN7hfrMmAoUA(self, obj.Field1->data, (obj.Field1 ? obj.Field1->Sup.len : 0));
|
|
}
|
|
|
|
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRawBytes__gEd4nMbHvCuWTUcwgvzU9cA_2)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, NU8* bytes, NI bytesLen_0) {
|
|
#line 112 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 112 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
add__dBX55hEvlLvqcAQw6nEieA((&(*self).output), bytes, bytesLen_0);
|
|
|
|
#line 113 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 113 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
maybeClosePendingLists__p7TA9cMcMTyROeFNIICF48Q(self);
|
|
}
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRecordType__nOQNIK9cKH1FxkCuhNSpj0A)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyObject_DisconnectionReasonList__BSmNWxleIm9aixvwuZbOKKQ obj, NIM_BOOL wrapInList) {
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ if (!wrapInList) goto LA3_;
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
startList__5Z9bBFfMvK6WH8IBESuCgyA(self, ((NI) 1));
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendInt__NnGAdy9aSud4YgPniLZfZ6Q(self, ((NI) (obj.value)));
|
|
}
|
|
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendImpl__39aO9cP1bow9aZVjp79cgTHHpg)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, NimStringDesc* data_0) {
|
|
#line 131 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 131 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if (((data_0 ? data_0->Sup.len : 0)-1)-((NI) 0) != -1 && ((NU)(((NI) 0)) >= (NU)(data_0 ? data_0->Sup.len : 0) || (NU)(((data_0 ? data_0->Sup.len : 0)-1)) >= (NU)(data_0 ? data_0->Sup.len : 0))){ raiseIndexError(); }
|
|
#line 131 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendBlob__etvJY2c9bhpXjTvvwwvUAtw(self, (NU8*)data_0->data+(((NI) 0)), (((data_0 ? data_0->Sup.len : 0)-1))-(((NI) 0))+1, ((NU8) 128));
|
|
}
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRecordType__xYTnAysfEbHGkSu5euCeAA)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyObject_Capability__oMiYUJkdwZ19b9aXFIiVltLA obj, NIM_BOOL wrapInList) {
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ if (!wrapInList) goto LA3_;
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
startList__5Z9bBFfMvK6WH8IBESuCgyA(self, ((NI) 2));
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendImpl__39aO9cP1bow9aZVjp79cgTHHpg(self, obj.name);
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendInt__NnGAdy9aSud4YgPniLZfZ6Q(self, obj.version);
|
|
}
|
|
|
|
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
static N_INLINE(void, appendImpl__AFraDNVz1vlV9b2189cvsOnAwriter)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyObject_Capability__oMiYUJkdwZ19b9aXFIiVltLA data_0) {
|
|
#line 199 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 199 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendRecordType__xYTnAysfEbHGkSu5euCeAA(self, data_0, NIM_TRUE);
|
|
}
|
|
|
|
#line 172 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendImpl__yh8hqYAylP23y9ccahdK4Eg)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyObject_Capability__oMiYUJkdwZ19b9aXFIiVltLA* listOrBlob, NI listOrBlobLen_0) {
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
startList__5Z9bBFfMvK6WH8IBESuCgyA(self, listOrBlobLen_0);
|
|
{ NI i; NI colontmp_; NI i_2; i = (NI)0; colontmp_ = (NI)0;
|
|
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
colontmp_ = listOrBlobLen_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__S3OP70HFZ7qkW9a0S28EdEA_41;
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(i_2 < colontmp_)) goto LA3;
|
|
|
|
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
i = i_2;
|
|
#line 182 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if ((NU)(i) >= (NU)(listOrBlobLen_0)){ raiseIndexError2(i,listOrBlobLen_0-1); }
|
|
#line 182 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendImpl__AFraDNVz1vlV9b2189cvsOnAwriter(self, listOrBlob[i]);
|
|
|
|
#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__S3OP70HFZ7qkW9a0S28EdEA_41)) { raiseOverflow(); }; i_2 = (NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_41); } LA3: ;
|
|
}
|
|
}
|
|
}
|
|
|
|
#line 60 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/p2p/discovery.nim"
|
|
static N_INLINE(void, append__wxSD7XmldU1ncMvsVBKxNQdiscovery)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* w, NU16 p_0) {
|
|
#line 60 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/p2p/discovery.nim"
|
|
|
|
#line 60 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/p2p/discovery.nim"
|
|
appendInt__NnGAdy9aSud4YgPniLZfZ6Q(w, ((NI) (p_0)));
|
|
}
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRecordType__0WJaflhseCJIHLTR8TOxzA)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyObject_Address__x5U8qnsjGWstAJoOadUZ9aA obj, NIM_BOOL wrapInList) {
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ if (!wrapInList) goto LA3_;
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
startList__5Z9bBFfMvK6WH8IBESuCgyA(self, ((NI) 3));
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
append__9a5tscgeoVMHndctguT3ONw(self, obj.ip);
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
append__wxSD7XmldU1ncMvsVBKxNQdiscovery(self, obj.udpPort);
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
append__wxSD7XmldU1ncMvsVBKxNQdiscovery(self, obj.tcpPort);
|
|
}
|
|
|
|
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
static N_INLINE(void, appendImpl__a0Shw870FifkN6G7Hrymvgwriter)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyObject_Address__x5U8qnsjGWstAJoOadUZ9aA data_0) {
|
|
#line 199 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 199 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendRecordType__0WJaflhseCJIHLTR8TOxzA(self, data_0, NIM_TRUE);
|
|
}
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRecordType__uKjlpZwWYBYMDgAGNhEhBw)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyTuple__Boxofyx0cfbCs9baoLqmiMQ* obj, NIM_BOOL wrapInList) {
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ if (!wrapInList) goto LA3_;
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
startList__5Z9bBFfMvK6WH8IBESuCgyA(self, ((NI) 4));
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendInt__NnGAdy9aSud4YgPniLZfZ6Q(self, (*obj).Field0);
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendImpl__a0Shw870FifkN6G7Hrymvgwriter(self, (*obj).Field1);
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendImpl__a0Shw870FifkN6G7Hrymvgwriter(self, (*obj).Field2);
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendInt__bkkBWdJ5J3kyjgokg9anKyw(self, (*obj).Field3);
|
|
}
|
|
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
static N_INLINE(void, appendImpl__lEKnkzPY79aYVM1XF9ck8pgAwriter)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyTuple__Boxofyx0cfbCs9baoLqmiMQ* data_0) {
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendRecordType__uKjlpZwWYBYMDgAGNhEhBw(self, data_0, NIM_TRUE);
|
|
}
|
|
|
|
#line 224 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, encode__S9bMzj6pU1FSiucIkJ9c770A)(tyTuple__Boxofyx0cfbCs9baoLqmiMQ* v) { tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* result; tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ writer;{ result = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*)0; nimZeroMem((void*)(&writer), sizeof(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ));
|
|
#line 226 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 226 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
initRlpWriter__t8xwIvC6oBKRxyVOLr42Og((&writer));
|
|
|
|
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendImpl__lEKnkzPY79aYVM1XF9ck8pgAwriter((&writer), v);
|
|
|
|
#line 228 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 228 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ NI T3_;
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
T3_ = (writer.pendingLists ? writer.pendingLists->Sup.len : 0); if (!!((T3_ == ((NI) 0)))) goto LA4_;
|
|
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__S3OP70HFZ7qkW9a0S28EdEA_33));
|
|
}
|
|
LA4_: ;
|
|
genericSeqAssign((&result), writer.output, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_)); goto BeforeRet_;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 62 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/p2p/discovery.nim"
|
|
static N_INLINE(void, append__WFZNTsMg31uKeJ4PfOlojwdiscovery)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* w, tyObject_MDigest__law9ct65KplMYBvtmjCQxbw* h_0) {
|
|
#line 62 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/p2p/discovery.nim"
|
|
|
|
#line 62 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/p2p/discovery.nim"
|
|
appendImpl__xQNLfTJIKg9bWsV9b1S4Pc0Q(w, (*h_0).data, 32);
|
|
}
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRecordType__Th64XhN04pATi8jat7cfPw)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyTuple__ip0pB3Eij9bXXLxUfAIMyIg* obj, NIM_BOOL wrapInList) {
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ if (!wrapInList) goto LA3_;
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
startList__5Z9bBFfMvK6WH8IBESuCgyA(self, ((NI) 3));
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendImpl__a0Shw870FifkN6G7Hrymvgwriter(self, (*obj).Field0);
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
append__WFZNTsMg31uKeJ4PfOlojwdiscovery(self, (&(*obj).Field1));
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendInt__bkkBWdJ5J3kyjgokg9anKyw(self, (*obj).Field2);
|
|
}
|
|
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
static N_INLINE(void, appendImpl__9bb1BaijB61QoFEw1ZC08Kwwriter)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyTuple__ip0pB3Eij9bXXLxUfAIMyIg* data_0) {
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendRecordType__Th64XhN04pATi8jat7cfPw(self, data_0, NIM_TRUE);
|
|
}
|
|
|
|
#line 224 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, encode__25y9choAcWPMwzGwTyRCTIQ)(tyTuple__ip0pB3Eij9bXXLxUfAIMyIg* v) { tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* result; tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ writer;{ result = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*)0; nimZeroMem((void*)(&writer), sizeof(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ));
|
|
#line 226 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 226 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
initRlpWriter__t8xwIvC6oBKRxyVOLr42Og((&writer));
|
|
|
|
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendImpl__9bb1BaijB61QoFEw1ZC08Kwwriter((&writer), v);
|
|
|
|
#line 228 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 228 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ NI T3_;
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
T3_ = (writer.pendingLists ? writer.pendingLists->Sup.len : 0); if (!!((T3_ == ((NI) 0)))) goto LA4_;
|
|
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__S3OP70HFZ7qkW9a0S28EdEA_33));
|
|
}
|
|
LA4_: ;
|
|
genericSeqAssign((&result), writer.output, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_)); goto BeforeRet_;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/p2p/discovery.nim"
|
|
static N_INLINE(void, append__ggSQABUXe7chEMlz9b8cqHAdiscovery)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* w, tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA* pk) { tyArray__w5VB8h5K8DB3oWrO5U2wqg T1_;
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/p2p/discovery.nim"
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/p2p/discovery.nim"
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/p2p/discovery.nim"
|
|
nimZeroMem((void*)T1_, sizeof(tyArray__w5VB8h5K8DB3oWrO5U2wqg)); toRaw__W9bYIkOOHQ8dZSTz9aIjEPEQ(pk, T1_);
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/p2p/discovery.nim"
|
|
appendImpl__xQNLfTJIKg9bWsV9b1S4Pc0Q(w, T1_, 64);
|
|
}
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRecordType__DJtlIA781eSNFNrZIs0erw)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyTuple__akue9c3LnOr29bcgBFD7a0Vg* obj, NIM_BOOL wrapInList) {
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ if (!wrapInList) goto LA3_;
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
startList__5Z9bBFfMvK6WH8IBESuCgyA(self, ((NI) 4));
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
append__9a5tscgeoVMHndctguT3ONw(self, (*obj).Field0);
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
append__wxSD7XmldU1ncMvsVBKxNQdiscovery(self, (*obj).Field1);
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
append__wxSD7XmldU1ncMvsVBKxNQdiscovery(self, (*obj).Field2);
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
append__ggSQABUXe7chEMlz9b8cqHAdiscovery(self, (&(*obj).Field3));
|
|
}
|
|
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
static N_INLINE(void, appendImpl__pxIeF8rhLyCeMyTMddqB8Awriter)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyTuple__akue9c3LnOr29bcgBFD7a0Vg* data_0) {
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendRecordType__DJtlIA781eSNFNrZIs0erw(self, data_0, NIM_TRUE);
|
|
}
|
|
|
|
#line 172 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendImpl__8emyuYsMuDNOZdB6R8LU9cA)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyTuple__akue9c3LnOr29bcgBFD7a0Vg* listOrBlob, NI listOrBlobLen_0) {
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
startList__5Z9bBFfMvK6WH8IBESuCgyA(self, listOrBlobLen_0);
|
|
{ NI i; NI colontmp_; NI i_2; i = (NI)0; colontmp_ = (NI)0;
|
|
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
colontmp_ = listOrBlobLen_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__S3OP70HFZ7qkW9a0S28EdEA_42;
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(i_2 < colontmp_)) goto LA3;
|
|
|
|
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
i = i_2;
|
|
#line 182 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if ((NU)(i) >= (NU)(listOrBlobLen_0)){ raiseIndexError2(i,listOrBlobLen_0-1); }
|
|
#line 182 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendImpl__pxIeF8rhLyCeMyTMddqB8Awriter(self, (&listOrBlob[i]));
|
|
|
|
#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__S3OP70HFZ7qkW9a0S28EdEA_42)) { raiseOverflow(); }; i_2 = (NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_42); } LA3: ;
|
|
}
|
|
}
|
|
}
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRecordType__qOFugGi1W0W7dwvmkU3y7w)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyTuple__2KY7pfkFge4RCMsQ8kRGsw obj, NIM_BOOL wrapInList) {
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ if (!wrapInList) goto LA3_;
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
startList__5Z9bBFfMvK6WH8IBESuCgyA(self, ((NI) 2));
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendImpl__8emyuYsMuDNOZdB6R8LU9cA(self, obj.Field0->data, (obj.Field0 ? obj.Field0->Sup.len : 0));
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendInt__bkkBWdJ5J3kyjgokg9anKyw(self, obj.Field1);
|
|
}
|
|
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
static N_INLINE(void, appendImpl__0PPgxQFv6kv9bJw9akgwjtXAwriter)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyTuple__2KY7pfkFge4RCMsQ8kRGsw data_0) {
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendRecordType__qOFugGi1W0W7dwvmkU3y7w(self, data_0, NIM_TRUE);
|
|
}
|
|
|
|
#line 224 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, encode__crTWkiqRq0o7EHDMwThqTw)(tyTuple__2KY7pfkFge4RCMsQ8kRGsw v) { tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* result; tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ writer;{ result = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*)0; nimZeroMem((void*)(&writer), sizeof(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ));
|
|
#line 226 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 226 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
initRlpWriter__t8xwIvC6oBKRxyVOLr42Og((&writer));
|
|
|
|
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendImpl__0PPgxQFv6kv9bJw9akgwjtXAwriter((&writer), v);
|
|
|
|
#line 228 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 228 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ NI T3_;
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
T3_ = (writer.pendingLists ? writer.pendingLists->Sup.len : 0); if (!!((T3_ == ((NI) 0)))) goto LA4_;
|
|
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__S3OP70HFZ7qkW9a0S28EdEA_33));
|
|
}
|
|
LA4_: ;
|
|
genericSeqAssign((&result), writer.output, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_)); goto BeforeRet_;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendRecordType__nMRaD6zbEaYd9b3mxJHWARA)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyTuple__gaGbVzehQOxhH9cAN1FlIyg* obj, NIM_BOOL wrapInList) {
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ if (!wrapInList) goto LA3_;
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
startList__5Z9bBFfMvK6WH8IBESuCgyA(self, ((NI) 2));
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendImpl__xQNLfTJIKg9bWsV9b1S4Pc0Q(self, (*obj).Field0, 64);
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendInt__bkkBWdJ5J3kyjgokg9anKyw(self, (*obj).Field1);
|
|
}
|
|
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
static N_INLINE(void, appendImpl__vAorBTF9cJi5dreAFo1ziSQwriter)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyTuple__gaGbVzehQOxhH9cAN1FlIyg* data_0) {
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendRecordType__nMRaD6zbEaYd9b3mxJHWARA(self, data_0, NIM_TRUE);
|
|
}
|
|
|
|
#line 224 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, encode__YlzDaxgM9ai9ci0sq4pkb2SA)(tyTuple__gaGbVzehQOxhH9cAN1FlIyg* v) { tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* result; tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ writer;{ result = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*)0; nimZeroMem((void*)(&writer), sizeof(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ));
|
|
#line 226 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 226 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
initRlpWriter__t8xwIvC6oBKRxyVOLr42Og((&writer));
|
|
|
|
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendImpl__vAorBTF9cJi5dreAFo1ziSQwriter((&writer), v);
|
|
|
|
#line 228 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 228 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
{ NI T3_;
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
T3_ = (writer.pendingLists ? writer.pendingLists->Sup.len : 0); if (!!((T3_ == ((NI) 0)))) goto LA4_;
|
|
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__S3OP70HFZ7qkW9a0S28EdEA_33));
|
|
}
|
|
LA4_: ;
|
|
genericSeqAssign((&result), writer.output, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_)); goto BeforeRet_;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 172 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, appendImpl__w9co02FdkbMXPTlmLxtdB8Q)(tyObject_RlpWriter__5wlnwCMsmWR0hwp89bvcZqQ* self, tyObject_Envelope__SvTrTIZs3cDneANW26dQlQ* listOrBlob, NI listOrBlobLen_0) {
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
startList__5Z9bBFfMvK6WH8IBESuCgyA(self, listOrBlobLen_0);
|
|
{ NI i; NI colontmp_; NI i_2; i = (NI)0; colontmp_ = (NI)0;
|
|
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
|
|
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
colontmp_ = listOrBlobLen_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__S3OP70HFZ7qkW9a0S28EdEA_43;
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(i_2 < colontmp_)) goto LA3;
|
|
|
|
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
i = i_2;
|
|
#line 182 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
if ((NU)(i) >= (NU)(listOrBlobLen_0)){ raiseIndexError2(i,listOrBlobLen_0-1); }
|
|
#line 182 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/rlp/writer.nim"
|
|
appendImpl__vrgMFKZEcmHrXBFUUAnFTQwriter(self, (&listOrBlob[i]));
|
|
|
|
#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__S3OP70HFZ7qkW9a0S28EdEA_43)) { raiseOverflow(); }; i_2 = (NI)(TM__S3OP70HFZ7qkW9a0S28EdEA_43); } LA3: ;
|
|
}
|
|
}
|
|
}
|
|
N_LIB_PRIVATE N_NIMCALL(void, eth_writerDatInit000)(void) {
|
|
|
|
#line 999999 "generated_not_to_break_here"
|
|
static TNimNode* TM__S3OP70HFZ7qkW9a0S28EdEA_14_2[2];
|
|
static TNimNode TM__S3OP70HFZ7qkW9a0S28EdEA_0[3];NTI__1v9bKyksXWMsm0vNwmZ4EuQ_.size = sizeof(tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ);
|
|
NTI__1v9bKyksXWMsm0vNwmZ4EuQ_.kind = 18;
|
|
NTI__1v9bKyksXWMsm0vNwmZ4EuQ_.base = 0;
|
|
NTI__1v9bKyksXWMsm0vNwmZ4EuQ_.flags = 3;
|
|
NTI__1v9bKyksXWMsm0vNwmZ4EuQ_.name = "tuple[remainingItems: int, outBytes: int]";
|
|
NTI__1v9bKyksXWMsm0vNwmZ4EuQ_.nextType = nimTypeRoot; nimTypeRoot=&NTI__1v9bKyksXWMsm0vNwmZ4EuQ_;
|
|
TM__S3OP70HFZ7qkW9a0S28EdEA_14_2[0] = &TM__S3OP70HFZ7qkW9a0S28EdEA_0[1];
|
|
TM__S3OP70HFZ7qkW9a0S28EdEA_0[1].kind = 1;
|
|
TM__S3OP70HFZ7qkW9a0S28EdEA_0[1].offset = offsetof(tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ, Field0);
|
|
TM__S3OP70HFZ7qkW9a0S28EdEA_0[1].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
|
|
TM__S3OP70HFZ7qkW9a0S28EdEA_0[1].name = "Field0";
|
|
TM__S3OP70HFZ7qkW9a0S28EdEA_14_2[1] = &TM__S3OP70HFZ7qkW9a0S28EdEA_0[2];
|
|
TM__S3OP70HFZ7qkW9a0S28EdEA_0[2].kind = 1;
|
|
TM__S3OP70HFZ7qkW9a0S28EdEA_0[2].offset = offsetof(tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ, Field1);
|
|
TM__S3OP70HFZ7qkW9a0S28EdEA_0[2].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
|
|
TM__S3OP70HFZ7qkW9a0S28EdEA_0[2].name = "Field1";
|
|
TM__S3OP70HFZ7qkW9a0S28EdEA_0[0].len = 2; TM__S3OP70HFZ7qkW9a0S28EdEA_0[0].kind = 2; TM__S3OP70HFZ7qkW9a0S28EdEA_0[0].sons = &TM__S3OP70HFZ7qkW9a0S28EdEA_14_2[0];
|
|
NTI__1v9bKyksXWMsm0vNwmZ4EuQ_.node = &TM__S3OP70HFZ7qkW9a0S28EdEA_0[0];
|
|
NTI__8Np6tlClE5az1CyqZdN19bQ_.size = sizeof(tySequence__8Np6tlClE5az1CyqZdN19bQ*);
|
|
NTI__8Np6tlClE5az1CyqZdN19bQ_.kind = 24;
|
|
NTI__8Np6tlClE5az1CyqZdN19bQ_.base = (&NTI__1v9bKyksXWMsm0vNwmZ4EuQ_);
|
|
NTI__8Np6tlClE5az1CyqZdN19bQ_.flags = 2;
|
|
NTI__8Np6tlClE5az1CyqZdN19bQ_.name = "seq[tuple[remainingItems: int, outBytes: int]]";
|
|
NTI__8Np6tlClE5az1CyqZdN19bQ_.nextType = nimTypeRoot; nimTypeRoot=&NTI__8Np6tlClE5az1CyqZdN19bQ_;
|
|
NTI__8Np6tlClE5az1CyqZdN19bQ_.marker = Marker_tySequence__8Np6tlClE5az1CyqZdN19bQ;
|
|
}
|
|
|