mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-30 00:25:45 +00:00
681 lines
44 KiB
C
681 lines
44 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-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-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 -march=native -g3 -Og -O3 -fno-strict-aliasing -fno-ident -I/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib -I/home/runner/work/nim-waku/nim-waku/waku/v2/node -o nimcache/release/start_network2/@m..@s..@s..@svendor@snim-libp2p@slibp2p@sprotobuf@sminprotobuf.nim.c.o nimcache/release/start_network2/@m..@s..@s..@svendor@snim-libp2p@slibp2p@sprotobuf@sminprotobuf.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_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA;
|
|
typedef struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ tySequence__6H5Oh5UUvVCLiakt9aTwtUQ;
|
|
typedef struct TGenericSeq TGenericSeq;
|
|
typedef struct TNimType TNimType;
|
|
typedef struct TNimNode TNimNode;
|
|
typedef struct NimStringDesc NimStringDesc;
|
|
typedef struct tyObject_Result__EU2D85u1tT2g3bs9aUSzTHw tyObject_Result__EU2D85u1tT2g3bs9aUSzTHw;
|
|
typedef struct tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA;
|
|
typedef NU8 tySet_tyEnum_ProtoFlags__34NlqR9bQ2hXegI29bJO9bfbA;
|
|
struct TGenericSeq {NI len;
|
|
NI reserved;
|
|
};
|
|
struct tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA {tySet_tyEnum_ProtoFlags__34NlqR9bQ2hXegI29bJO9bfbA options;
|
|
tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* buffer;
|
|
NI offset;
|
|
NI length;
|
|
};
|
|
typedef NU8 tyEnum_ProtoFlags__34NlqR9bQ2hXegI29bJO9bfbA;
|
|
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 NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
|
|
};
|
|
typedef NU8 tyEnum_ProtoFieldKind__Wwi9aIn9csHQItvaYpZ8gYrQ;
|
|
typedef NU8 tyEnum_VarintError__z9coCVKRSy09c3xCpPfzuFKg;
|
|
struct tyObject_Result__EU2D85u1tT2g3bs9aUSzTHw {NIM_BOOL o;
|
|
union{
|
|
struct {tyEnum_VarintError__z9coCVKRSy09c3xCpPfzuFKg e;
|
|
} _o_1;
|
|
};
|
|
};
|
|
struct tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA {NI a;
|
|
NI b;
|
|
};
|
|
typedef NU8 tyArray__H8qf9bpC2ziYA2earmO8m7w[4];
|
|
typedef NU8 tyEnum_Endianness__0BVYNY0K9cz7BUPI3AnbEQw;
|
|
struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ { TGenericSeq Sup; NU8 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(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, newSeq__DpCWN7DIBuAjgoeQ9c29blYQ)(NI len_0);
|
|
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, setLengthSeqV2)(TGenericSeq* s, TNimType* typ, NI newLen);
|
|
N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg);
|
|
static N_INLINE(NI, vsizeof__LNrGVKzYZfjqZfKsinkR9bwvarint)(NU64 x_0);
|
|
N_LIB_PRIVATE N_NIMCALL(NI8, len__pONbWCTj2wIjLBtK9b8oQ3w)(NU64 x_0);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b);
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_Result__EU2D85u1tT2g3bs9aUSzTHw, putUVarint__6fSC1OMzKIBn5lnSoZxaJg)(NU8* pbytes, NI pbytesLen_0, NI* outlen, NU64 outval);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError)(void);
|
|
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size);
|
|
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
|
|
static N_INLINE(NI, vsizeof__u9bwDD5HhoG7HxvmDQNcufAvarint)(NU x_0);
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_Result__EU2D85u1tT2g3bs9aUSzTHw, putUVarint__79azrOXTpUUttfPZGnOajHw)(NU8* pbytes, NI pbytesLen_0, NI* outlen, NU outval);
|
|
N_LIB_PRIVATE N_NIMCALL(void, X5BX5Deq___qJlVOFBL4jBLOAqY9cXVxDQ)(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ** s, tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA x_0, NU8* b, NI bLen_0);
|
|
static N_INLINE(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA, dotdot___BokNSDrKN1xmV1nA01G9brAsystem)(NI a, NI b);
|
|
static N_INLINE(void, nimZeroMem)(void* p, NI size);
|
|
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size);
|
|
static N_INLINE(void, toBytesBE__frQ3R0BPaGRHruiChJfyhAendians2)(NU32 x_0, tyArray__H8qf9bpC2ziYA2earmO8m7w Result);
|
|
static N_INLINE(void, toBytes__aJssfgKl1RsT4HYF3ZsGsAendians2)(NU32 x_0, tyEnum_Endianness__0BVYNY0K9cz7BUPI3AnbEQw endian, tyArray__H8qf9bpC2ziYA2earmO8m7w Result);
|
|
static N_INLINE(NU32, swapBytes__a09aOtLA9b4piPbGbo9c8yVRgendians2)(NU32 x_0);
|
|
static N_INLINE(void, toBytesLE__frQ3R0BPaGRHruiChJfyhA_2endians2)(NU32 x_0, tyArray__H8qf9bpC2ziYA2earmO8m7w Result);
|
|
extern TNimType NTI__6H5Oh5UUvVCLiakt9aTwtUQ_;
|
|
STRING_LITERAL(TM__cjcorFqQStoTTllCPpulBQ_2, "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/pr"
|
|
"otobuf/minprotobuf.nim(186, 19) `(field > 0 and field < (1 shl 2"
|
|
"9)) and not (field >= 19000 and field <= 19999)` Incorrect or re"
|
|
"served field number", 210);
|
|
STRING_LITERAL(TM__cjcorFqQStoTTllCPpulBQ_6, "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/pr"
|
|
"otobuf/minprotobuf.nim(207, 11) `hres.isOk()` ", 109);
|
|
STRING_LITERAL(TM__cjcorFqQStoTTllCPpulBQ_9, "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/pr"
|
|
"otobuf/minprotobuf.nim(211, 13) `vres.isOk()` ", 109);
|
|
STRING_LITERAL(TM__cjcorFqQStoTTllCPpulBQ_11, "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/pr"
|
|
"otobuf/minprotobuf.nim(279, 19) `(field > 0 and field < (1 shl 2"
|
|
"9)) and not (field >= 19000 and field <= 19999)` Incorrect or re"
|
|
"served field number", 210);
|
|
STRING_LITERAL(TM__cjcorFqQStoTTllCPpulBQ_16, "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/pr"
|
|
"otobuf/minprotobuf.nim(286, 11) `hres.isOk()` ", 109);
|
|
STRING_LITERAL(TM__cjcorFqQStoTTllCPpulBQ_19, "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/pr"
|
|
"otobuf/minprotobuf.nim(290, 11) `lres.isOk()` ", 109);
|
|
STRING_LITERAL(TM__cjcorFqQStoTTllCPpulBQ_23, "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/pr"
|
|
"otobuf/minprotobuf.nim(293, 13) `pb.isEnough(len(value))` ", 121);
|
|
STRING_LITERAL(TM__cjcorFqQStoTTllCPpulBQ_25, "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/pr"
|
|
"otobuf/minprotobuf.nim(349, 11) `len(pb.buffer) > 0` ", 116);
|
|
STRING_LITERAL(TM__cjcorFqQStoTTllCPpulBQ_28, "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/pr"
|
|
"otobuf/minprotobuf.nim(355, 13) `res.isOk()` ", 108);
|
|
|
|
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, initProtoBuffer__WvyuU9b9b5JbJrzKXmuwx4ng)(tySet_tyEnum_ProtoFlags__34NlqR9bQ2hXegI29bJO9bfbA options, tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA* Result) { chckNil((void*)Result); unsureAsgnRef((void**)&(*Result).buffer, NIM_NIL); (*Result).offset = 0; (*Result).length = 0;
|
|
#line 171 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 171 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
unsureAsgnRef((void**) (&(*Result).buffer), newSeq__DpCWN7DIBuAjgoeQ9c29blYQ(((NI) 0)));
|
|
#line 172 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
(*Result).options = options;
|
|
#line 173 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
{
|
|
#line 173 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
if (!((options &(1U<<((NU)(((tyEnum_ProtoFlags__34NlqR9bQ2hXegI29bJO9bfbA) 0))&7U)))!=0)) goto LA3_;
|
|
|
|
#line 176 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
unsureAsgnRef((void**) (&(*Result).buffer), (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) setLengthSeqV2(&((*Result).buffer)->Sup, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_), ((NI) 10)));
|
|
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
(*Result).offset = ((NI) 10); }
|
|
goto LA1_;
|
|
LA3_: ;
|
|
{
|
|
#line 178 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 178 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 178 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
if (!!(((6 & options) == 0))) goto LA6_;
|
|
|
|
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
unsureAsgnRef((void**) (&(*Result).buffer), (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) setLengthSeqV2(&((*Result).buffer)->Sup, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_), ((NI) 4)));
|
|
#line 182 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
(*Result).offset = ((NI) 4); }
|
|
goto LA1_;
|
|
LA6_: ;
|
|
LA1_: ;
|
|
}
|
|
|
|
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/varint.nim"
|
|
static N_INLINE(NI, vsizeof__LNrGVKzYZfjqZfKsinkR9bwvarint)(NU64 x_0) { NI result; NI8 T1_; result = (NI)0;
|
|
#line 102 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/varint.nim"
|
|
|
|
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/varint.nim"
|
|
|
|
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/varint.nim"
|
|
T1_ = (NI8)0; T1_ = len__pONbWCTj2wIjLBtK9b8oQ3w(x_0); result = ((NI) (T1_)); return result;}
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, write__WL2qD4LleS3p9aN3TKfkYKQ)(tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA* pb, NI field, NU64 value_0) { NI length; NI flength; NI T11_; NI T12_; NI TM__cjcorFqQStoTTllCPpulBQ_3; tyEnum_ProtoFieldKind__Wwi9aIn9csHQItvaYpZ8gYrQ header; NI T13_; NI TM__cjcorFqQStoTTllCPpulBQ_4; tyObject_Result__EU2D85u1tT2g3bs9aUSzTHw hres; NI T14_; NI TM__cjcorFqQStoTTllCPpulBQ_5; NI TM__cjcorFqQStoTTllCPpulBQ_7; tyObject_Result__EU2D85u1tT2g3bs9aUSzTHw vres; NI T19_; NI TM__cjcorFqQStoTTllCPpulBQ_8; NI TM__cjcorFqQStoTTllCPpulBQ_10;
|
|
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
{ NIM_BOOL T3_; NIM_BOOL T4_; NIM_BOOL T7_;
|
|
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T3_ = (NIM_BOOL)0;
|
|
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T4_ = (NIM_BOOL)0;
|
|
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T4_ = (((NI) 0) < field); if (!(T4_)) goto LA5_;
|
|
|
|
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T4_ = (field < ((NI) 536870912)); LA5_: ;
|
|
T3_ = T4_; if (!(T3_)) goto LA6_;
|
|
|
|
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T7_ = (NIM_BOOL)0;
|
|
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T7_ = (((NI) 19000) <= field); if (!(T7_)) goto LA8_;
|
|
|
|
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T7_ = (field <= ((NI) 19999)); LA8_: ;
|
|
T3_ = !(T7_); LA6_: ;
|
|
if (!!(T3_)) goto LA9_;
|
|
|
|
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__cjcorFqQStoTTllCPpulBQ_2));
|
|
}
|
|
LA9_: ;
|
|
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
length = ((NI) 0);
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T11_ = (NI)0; T11_ = vsizeof__LNrGVKzYZfjqZfKsinkR9bwvarint((NU64)((NU64)((NU64)(((NU64) (field))) << (NU64)(((NI) 3))) | 0ULL));
|
|
#line 192 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 192 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T12_ = (NI)0; T12_ = vsizeof__LNrGVKzYZfjqZfKsinkR9bwvarint(value_0); if (nimAddInt(T11_, T12_, &TM__cjcorFqQStoTTllCPpulBQ_3)) { raiseOverflow(); }; flength = (NI)(TM__cjcorFqQStoTTllCPpulBQ_3);
|
|
#line 193 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
header = ((tyEnum_ProtoFieldKind__Wwi9aIn9csHQItvaYpZ8gYrQ) 0);
|
|
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T13_ = ((*pb).buffer ? (*pb).buffer->Sup.len : 0); if (nimAddInt(T13_, flength, &TM__cjcorFqQStoTTllCPpulBQ_4)) { raiseOverflow(); }; if (((NI)(TM__cjcorFqQStoTTllCPpulBQ_4)) < ((NI) 0) || ((NI)(TM__cjcorFqQStoTTllCPpulBQ_4)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__cjcorFqQStoTTllCPpulBQ_4), ((NI) 0), ((NI) IL64(9223372036854775807))); } unsureAsgnRef((void**) (&(*pb).buffer), (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) setLengthSeqV2(&((*pb).buffer)->Sup, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_), ((NI) ((NI)(TM__cjcorFqQStoTTllCPpulBQ_4)))));
|
|
#line 205 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T14_ = ((*pb).buffer ? (*pb).buffer->Sup.len : 0); if (nimSubInt(T14_, ((NI) 1), &TM__cjcorFqQStoTTllCPpulBQ_5)) { raiseOverflow(); }; if ((NI)(TM__cjcorFqQStoTTllCPpulBQ_5)-(*pb).offset != -1 && ((NU)((*pb).offset) >= (NU)((*pb).buffer ? (*pb).buffer->Sup.len : 0) || (NU)((NI)(TM__cjcorFqQStoTTllCPpulBQ_5)) >= (NU)((*pb).buffer ? (*pb).buffer->Sup.len : 0))){ raiseIndexError(); }
|
|
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 205 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
hres = putUVarint__6fSC1OMzKIBn5lnSoZxaJg((NU8*)(*pb).buffer->data+((*pb).offset), ((NI)(TM__cjcorFqQStoTTllCPpulBQ_5))-((*pb).offset)+1, (&length), (NU64)((NU64)((NU64)(((NU64) (field))) << (NU64)(((NI) 3))) | ((NU64) (header))));
|
|
#line 207 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
{
|
|
#line 207 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
if (!!(hres.o)) goto LA17_;
|
|
|
|
#line 207 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 207 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__cjcorFqQStoTTllCPpulBQ_6));
|
|
}
|
|
LA17_: ;
|
|
|
|
#line 208 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
if (nimAddInt((*pb).offset, length, &TM__cjcorFqQStoTTllCPpulBQ_7)) { raiseOverflow(); }; (*pb).offset = (NI)(TM__cjcorFqQStoTTllCPpulBQ_7);
|
|
#line 210 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T19_ = ((*pb).buffer ? (*pb).buffer->Sup.len : 0); if (nimSubInt(T19_, ((NI) 1), &TM__cjcorFqQStoTTllCPpulBQ_8)) { raiseOverflow(); }; if ((NI)(TM__cjcorFqQStoTTllCPpulBQ_8)-(*pb).offset != -1 && ((NU)((*pb).offset) >= (NU)((*pb).buffer ? (*pb).buffer->Sup.len : 0) || (NU)((NI)(TM__cjcorFqQStoTTllCPpulBQ_8)) >= (NU)((*pb).buffer ? (*pb).buffer->Sup.len : 0))){ raiseIndexError(); }
|
|
#line 210 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
vres = putUVarint__6fSC1OMzKIBn5lnSoZxaJg((NU8*)(*pb).buffer->data+((*pb).offset), ((NI)(TM__cjcorFqQStoTTllCPpulBQ_8))-((*pb).offset)+1, (&length), value_0);
|
|
#line 211 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
{
|
|
#line 211 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
if (!!(vres.o)) goto LA22_;
|
|
|
|
#line 211 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 211 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__cjcorFqQStoTTllCPpulBQ_9));
|
|
}
|
|
LA22_: ;
|
|
|
|
#line 212 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
if (nimAddInt((*pb).offset, length, &TM__cjcorFqQStoTTllCPpulBQ_10)) { raiseOverflow(); }; (*pb).offset = (NI)(TM__cjcorFqQStoTTllCPpulBQ_10);}
|
|
|
|
#line 11 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size) { void* T1_;
|
|
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
T1_ = (void*)0; T1_ = memcpy(dest, source, ((size_t) (size)));}
|
|
|
|
#line 2112 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size) {
|
|
#line 2113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
nimCopyMem(dest, source, size);
|
|
}
|
|
|
|
#line 277 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, write__4tkJJWHqmkKO9cj2FvJ9cDoQ)(tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA* pb, NI field, NU8* value_0, NI value_0Len_0) { NI length; NI flength; NI T11_; NI T12_; NI TM__cjcorFqQStoTTllCPpulBQ_12; NI TM__cjcorFqQStoTTllCPpulBQ_13; NI T13_; NI TM__cjcorFqQStoTTllCPpulBQ_14; tyObject_Result__EU2D85u1tT2g3bs9aUSzTHw hres; NI T14_; NI TM__cjcorFqQStoTTllCPpulBQ_15; NI TM__cjcorFqQStoTTllCPpulBQ_17; tyObject_Result__EU2D85u1tT2g3bs9aUSzTHw lres; NI T19_; NI TM__cjcorFqQStoTTllCPpulBQ_18; NI TM__cjcorFqQStoTTllCPpulBQ_20;
|
|
#line 279 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
{ NIM_BOOL T3_; NIM_BOOL T4_; NIM_BOOL T7_;
|
|
#line 279 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 279 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T3_ = (NIM_BOOL)0;
|
|
#line 279 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T4_ = (NIM_BOOL)0;
|
|
#line 279 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T4_ = (((NI) 0) < field); if (!(T4_)) goto LA5_;
|
|
|
|
#line 279 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T4_ = (field < ((NI) 536870912)); LA5_: ;
|
|
T3_ = T4_; if (!(T3_)) goto LA6_;
|
|
|
|
#line 279 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 279 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T7_ = (NIM_BOOL)0;
|
|
#line 279 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T7_ = (((NI) 19000) <= field); if (!(T7_)) goto LA8_;
|
|
|
|
#line 279 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T7_ = (field <= ((NI) 19999)); LA8_: ;
|
|
T3_ = !(T7_); LA6_: ;
|
|
if (!!(T3_)) goto LA9_;
|
|
|
|
#line 279 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 279 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__cjcorFqQStoTTllCPpulBQ_11));
|
|
}
|
|
LA9_: ;
|
|
|
|
#line 280 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
length = ((NI) 0);
|
|
#line 281 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 282 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 281 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 281 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 281 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T11_ = (NI)0; T11_ = vsizeof__LNrGVKzYZfjqZfKsinkR9bwvarint((NU64)((NU64)((NU64)(((NU64) (field))) << (NU64)(((NI) 3))) | 2ULL));
|
|
#line 282 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 282 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 282 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T12_ = (NI)0; T12_ = vsizeof__LNrGVKzYZfjqZfKsinkR9bwvarint(((NU64) (value_0Len_0))); if (nimAddInt(T11_, T12_, &TM__cjcorFqQStoTTllCPpulBQ_12)) { raiseOverflow(); };
|
|
#line 282 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
if (nimAddInt((NI)(TM__cjcorFqQStoTTllCPpulBQ_12), value_0Len_0, &TM__cjcorFqQStoTTllCPpulBQ_13)) { raiseOverflow(); }; flength = (NI)(TM__cjcorFqQStoTTllCPpulBQ_13);
|
|
#line 283 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 283 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 283 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T13_ = ((*pb).buffer ? (*pb).buffer->Sup.len : 0); if (nimAddInt(T13_, flength, &TM__cjcorFqQStoTTllCPpulBQ_14)) { raiseOverflow(); }; if (((NI)(TM__cjcorFqQStoTTllCPpulBQ_14)) < ((NI) 0) || ((NI)(TM__cjcorFqQStoTTllCPpulBQ_14)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__cjcorFqQStoTTllCPpulBQ_14), ((NI) 0), ((NI) IL64(9223372036854775807))); } unsureAsgnRef((void**) (&(*pb).buffer), (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) setLengthSeqV2(&((*pb).buffer)->Sup, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_), ((NI) ((NI)(TM__cjcorFqQStoTTllCPpulBQ_14)))));
|
|
#line 284 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T14_ = ((*pb).buffer ? (*pb).buffer->Sup.len : 0); if (nimSubInt(T14_, ((NI) 1), &TM__cjcorFqQStoTTllCPpulBQ_15)) { raiseOverflow(); }; if ((NI)(TM__cjcorFqQStoTTllCPpulBQ_15)-(*pb).offset != -1 && ((NU)((*pb).offset) >= (NU)((*pb).buffer ? (*pb).buffer->Sup.len : 0) || (NU)((NI)(TM__cjcorFqQStoTTllCPpulBQ_15)) >= (NU)((*pb).buffer ? (*pb).buffer->Sup.len : 0))){ raiseIndexError(); }
|
|
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 284 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
hres = putUVarint__6fSC1OMzKIBn5lnSoZxaJg((NU8*)(*pb).buffer->data+((*pb).offset), ((NI)(TM__cjcorFqQStoTTllCPpulBQ_15))-((*pb).offset)+1, (&length), (NU64)((NU64)((NU64)(((NU64) (field))) << (NU64)(((NI) 3))) | 2ULL));
|
|
#line 286 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
{
|
|
#line 286 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
if (!!(hres.o)) goto LA17_;
|
|
|
|
#line 286 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 286 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__cjcorFqQStoTTllCPpulBQ_16));
|
|
}
|
|
LA17_: ;
|
|
|
|
#line 287 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
if (nimAddInt((*pb).offset, length, &TM__cjcorFqQStoTTllCPpulBQ_17)) { raiseOverflow(); }; (*pb).offset = (NI)(TM__cjcorFqQStoTTllCPpulBQ_17);
|
|
#line 288 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T19_ = ((*pb).buffer ? (*pb).buffer->Sup.len : 0); if (nimSubInt(T19_, ((NI) 1), &TM__cjcorFqQStoTTllCPpulBQ_18)) { raiseOverflow(); }; if ((NI)(TM__cjcorFqQStoTTllCPpulBQ_18)-(*pb).offset != -1 && ((NU)((*pb).offset) >= (NU)((*pb).buffer ? (*pb).buffer->Sup.len : 0) || (NU)((NI)(TM__cjcorFqQStoTTllCPpulBQ_18)) >= (NU)((*pb).buffer ? (*pb).buffer->Sup.len : 0))){ raiseIndexError(); }
|
|
#line 289 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 288 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
lres = putUVarint__6fSC1OMzKIBn5lnSoZxaJg((NU8*)(*pb).buffer->data+((*pb).offset), ((NI)(TM__cjcorFqQStoTTllCPpulBQ_18))-((*pb).offset)+1, (&length), ((NU64) (value_0Len_0)));
|
|
#line 290 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
{
|
|
#line 290 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
if (!!(lres.o)) goto LA22_;
|
|
|
|
#line 290 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 290 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__cjcorFqQStoTTllCPpulBQ_19));
|
|
}
|
|
LA22_: ;
|
|
|
|
#line 291 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
if (nimAddInt((*pb).offset, length, &TM__cjcorFqQStoTTllCPpulBQ_20)) { raiseOverflow(); }; (*pb).offset = (NI)(TM__cjcorFqQStoTTllCPpulBQ_20);
|
|
#line 292 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
{ NI TM__cjcorFqQStoTTllCPpulBQ_24;
|
|
#line 292 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 292 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
if (!(((NI) 0) < value_0Len_0)) goto LA26_;
|
|
|
|
#line 293 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
{ NI T30_; NI TM__cjcorFqQStoTTllCPpulBQ_21; NI TM__cjcorFqQStoTTllCPpulBQ_22;
|
|
#line 293 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 293 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 293 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 293 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 293 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T30_ = ((*pb).buffer ? (*pb).buffer->Sup.len : 0); if (nimSubInt(T30_, (*pb).offset, &TM__cjcorFqQStoTTllCPpulBQ_21)) { raiseOverflow(); };
|
|
#line 293 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
if (nimSubInt((NI)(TM__cjcorFqQStoTTllCPpulBQ_21), value_0Len_0, &TM__cjcorFqQStoTTllCPpulBQ_22)) { raiseOverflow(); }; if (!!((((NI) 0) <= (NI)(TM__cjcorFqQStoTTllCPpulBQ_22)))) goto LA31_;
|
|
|
|
#line 293 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 293 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__cjcorFqQStoTTllCPpulBQ_23));
|
|
}
|
|
LA31_: ;
|
|
|
|
#line 294 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
if ((NU)((*pb).offset) >= (NU)((*pb).buffer ? (*pb).buffer->Sup.len : 0)){ raiseIndexError2((*pb).offset,((*pb).buffer ? (*pb).buffer->Sup.len : 0)-1); } if ((NU)(((NI) 0)) >= (NU)(value_0Len_0)){ raiseIndexError2(((NI) 0),value_0Len_0-1); }
|
|
#line 294 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
if ((value_0Len_0) < ((NI) 0) || (value_0Len_0) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(value_0Len_0, ((NI) 0), ((NI) IL64(9223372036854775807))); }
|
|
#line 294 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&(*pb).buffer->data[(*pb).offset]))), ((void*) ((&value_0[((NI) 0)]))), ((NI) (value_0Len_0)));
|
|
|
|
#line 295 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 295 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
if (nimAddInt((*pb).offset, value_0Len_0, &TM__cjcorFqQStoTTllCPpulBQ_24)) { raiseOverflow(); }; (*pb).offset = (NI)(TM__cjcorFqQStoTTllCPpulBQ_24); }
|
|
LA26_: ;
|
|
}
|
|
|
|
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/varint.nim"
|
|
static N_INLINE(NI, vsizeof__u9bwDD5HhoG7HxvmDQNcufAvarint)(NU x_0) { NI result; NI8 T1_; result = (NI)0;
|
|
#line 102 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/varint.nim"
|
|
|
|
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/varint.nim"
|
|
|
|
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/varint.nim"
|
|
T1_ = (NI8)0; T1_ = len__pONbWCTj2wIjLBtK9b8oQ3w(((NU64) (x_0))); result = ((NI) (T1_)); return result;}
|
|
|
|
#line 22 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size) { void* T1_;
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
T1_ = (void*)0; T1_ = memset(a, v, ((size_t) (size)));}
|
|
|
|
#line 33 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimZeroMem)(void* p, NI size) {
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory(p, ((int) 0), size);
|
|
}
|
|
|
|
#line 459 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA, dotdot___BokNSDrKN1xmV1nA01G9brAsystem)(NI a, NI b) { tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA result; nimZeroMem((void*)(&result), sizeof(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA));
|
|
#line 469 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
chckNil((void*)(&result)); nimZeroMem((void*)(&result), sizeof(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA)); result.a = a; result.b = b; return result;}
|
|
|
|
#line 79 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
|
|
static N_INLINE(NU32, swapBytes__a09aOtLA9b4piPbGbo9c8yVRgendians2)(NU32 x_0) { NU32 result; result = (NU32)0;
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
|
|
|
|
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
|
|
|
|
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
|
|
result = __builtin_bswap32(x_0); return result;}
|
|
|
|
#line 93 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
|
|
static N_INLINE(void, toBytes__aJssfgKl1RsT4HYF3ZsGsAendians2)(NU32 x_0, tyEnum_Endianness__0BVYNY0K9cz7BUPI3AnbEQw endian, tyArray__H8qf9bpC2ziYA2earmO8m7w Result) { NU32 v;
|
|
#line 97 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
|
|
|
|
#line 98 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
|
|
{
|
|
#line 98 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
|
|
if (!(endian == ((tyEnum_Endianness__0BVYNY0K9cz7BUPI3AnbEQw) 0))) goto LA3_;
|
|
v = x_0; }
|
|
goto LA1_;
|
|
LA3_: ;
|
|
{
|
|
#line 99 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
|
|
|
|
#line 99 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
|
|
v = swapBytes__a09aOtLA9b4piPbGbo9c8yVRgendians2(x_0); }
|
|
LA1_: ;
|
|
{ NI i; NI i_2; i = (NI)0;
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
i_2 = ((NI) 0); {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__cjcorFqQStoTTllCPpulBQ_30; NI TM__cjcorFqQStoTTllCPpulBQ_31;
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(i_2 < ((NI) 4))) goto LA8;
|
|
|
|
#line 102 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
|
|
i = i_2; if ((NU)(i) > (NU)(3)){ raiseIndexError2(i, 3); }
|
|
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
|
|
|
|
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
|
|
|
|
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
|
|
|
|
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
|
|
if (nimMulInt(i, ((NI) 8), &TM__cjcorFqQStoTTllCPpulBQ_30)) { raiseOverflow(); }; Result[(i)- 0] = ((NU8) ((NU32)((NU32)((NU32)(v) >> (NU64)((NI)(TM__cjcorFqQStoTTllCPpulBQ_30))) & ((NU32) 255))));
|
|
#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__cjcorFqQStoTTllCPpulBQ_31)) { raiseOverflow(); }; i_2 = (NI)(TM__cjcorFqQStoTTllCPpulBQ_31); } LA8: ;
|
|
}
|
|
}
|
|
}
|
|
|
|
#line 110 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
|
|
static N_INLINE(void, toBytesBE__frQ3R0BPaGRHruiChJfyhAendians2)(NU32 x_0, tyArray__H8qf9bpC2ziYA2earmO8m7w Result) {
|
|
#line 112 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
|
|
|
|
#line 113 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
|
|
|
|
#line 113 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
|
|
toBytes__aJssfgKl1RsT4HYF3ZsGsAendians2(x_0, ((tyEnum_Endianness__0BVYNY0K9cz7BUPI3AnbEQw) 1), Result);
|
|
}
|
|
|
|
#line 105 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
|
|
static N_INLINE(void, toBytesLE__frQ3R0BPaGRHruiChJfyhA_2endians2)(NU32 x_0, tyArray__H8qf9bpC2ziYA2earmO8m7w Result) {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
|
|
|
|
#line 108 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
|
|
|
|
#line 108 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
|
|
toBytes__aJssfgKl1RsT4HYF3ZsGsAendians2(x_0, ((tyEnum_Endianness__0BVYNY0K9cz7BUPI3AnbEQw) 0), Result);
|
|
}
|
|
|
|
#line 347 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, finish__1rmuOyUuHHnrDPgEOlTQaw)(tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA* pb) {
|
|
#line 349 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
{ NI T3_;
|
|
#line 349 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 349 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 349 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T3_ = ((*pb).buffer ? (*pb).buffer->Sup.len : 0); if (!!((((NI) 0) < T3_))) goto LA4_;
|
|
|
|
#line 349 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 349 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__cjcorFqQStoTTllCPpulBQ_25));
|
|
}
|
|
LA4_: ;
|
|
|
|
#line 350 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
{ NU size; NI T10_; NI TM__cjcorFqQStoTTllCPpulBQ_26; NI pos; NI T11_; NI TM__cjcorFqQStoTTllCPpulBQ_27; NI usedBytes; tyObject_Result__EU2D85u1tT2g3bs9aUSzTHw res;
|
|
#line 350 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
if (!(((*pb).options &(1U<<((NU)(((tyEnum_ProtoFlags__34NlqR9bQ2hXegI29bJO9bfbA) 0))&7U)))!=0)) goto LA8_;
|
|
|
|
#line 351 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 351 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 351 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T10_ = ((*pb).buffer ? (*pb).buffer->Sup.len : 0); if (nimSubInt(T10_, ((NI) 10), &TM__cjcorFqQStoTTllCPpulBQ_26)) { raiseOverflow(); }; size = ((NU) ((NI)(TM__cjcorFqQStoTTllCPpulBQ_26)));
|
|
#line 352 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 352 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 352 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 352 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T11_ = (NI)0; T11_ = vsizeof__u9bwDD5HhoG7HxvmDQNcufAvarint(size); if (nimSubInt(((NI) 10), T11_, &TM__cjcorFqQStoTTllCPpulBQ_27)) { raiseOverflow(); }; pos = (NI)(TM__cjcorFqQStoTTllCPpulBQ_27);
|
|
#line 353 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
usedBytes = ((NI) 0);
|
|
#line 354 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
if (((NI) 9)-pos != -1 && ((NU)(pos) >= (NU)((*pb).buffer ? (*pb).buffer->Sup.len : 0) || (NU)(((NI) 9)) >= (NU)((*pb).buffer ? (*pb).buffer->Sup.len : 0))){ raiseIndexError(); }
|
|
#line 354 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
res = putUVarint__79azrOXTpUUttfPZGnOajHw((NU8*)(*pb).buffer->data+(pos), (((NI) 9))-(pos)+1, (&usedBytes), size);
|
|
#line 355 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
{
|
|
#line 355 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
if (!!(res.o)) goto LA14_;
|
|
|
|
#line 355 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 355 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__cjcorFqQStoTTllCPpulBQ_28));
|
|
}
|
|
LA14_: ;
|
|
|
|
#line 356 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
(*pb).offset = pos; }
|
|
goto LA6_;
|
|
LA8_: ;
|
|
{ NU size_2; NI T19_; NI TM__cjcorFqQStoTTllCPpulBQ_29; tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA T20_; tyArray__H8qf9bpC2ziYA2earmO8m7w T21_;
|
|
#line 357 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
if (!(((*pb).options &(1U<<((NU)(((tyEnum_ProtoFlags__34NlqR9bQ2hXegI29bJO9bfbA) 1))&7U)))!=0)) goto LA17_;
|
|
|
|
#line 358 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 358 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 358 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T19_ = ((*pb).buffer ? (*pb).buffer->Sup.len : 0); if (nimSubInt(T19_, ((NI) 4), &TM__cjcorFqQStoTTllCPpulBQ_29)) { raiseOverflow(); }; size_2 = ((NU) ((NI)(TM__cjcorFqQStoTTllCPpulBQ_29)));
|
|
#line 359 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 359 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 359 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T20_ = dotdot___BokNSDrKN1xmV1nA01G9brAsystem(((NI) 0), ((NI) 3));
|
|
#line 359 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 359 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
nimZeroMem((void*)T21_, sizeof(tyArray__H8qf9bpC2ziYA2earmO8m7w)); toBytesBE__frQ3R0BPaGRHruiChJfyhAendians2(((NU32) (size_2)), T21_);
|
|
|
|
#line 359 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
X5BX5Deq___qJlVOFBL4jBLOAqY9cXVxDQ((&(*pb).buffer), T20_, T21_, 4);
|
|
|
|
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
(*pb).offset = ((NI) 4); }
|
|
goto LA6_;
|
|
LA17_: ;
|
|
{ NU size_3; NI T25_; NI TM__cjcorFqQStoTTllCPpulBQ_32; tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA T26_; tyArray__H8qf9bpC2ziYA2earmO8m7w T27_;
|
|
#line 361 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
if (!(((*pb).options &(1U<<((NU)(((tyEnum_ProtoFlags__34NlqR9bQ2hXegI29bJO9bfbA) 2))&7U)))!=0)) goto LA23_;
|
|
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T25_ = ((*pb).buffer ? (*pb).buffer->Sup.len : 0); if (nimSubInt(T25_, ((NI) 4), &TM__cjcorFqQStoTTllCPpulBQ_32)) { raiseOverflow(); }; size_3 = ((NU) ((NI)(TM__cjcorFqQStoTTllCPpulBQ_32)));
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
T26_ = dotdot___BokNSDrKN1xmV1nA01G9brAsystem(((NI) 0), ((NI) 3));
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
nimZeroMem((void*)T27_, sizeof(tyArray__H8qf9bpC2ziYA2earmO8m7w)); toBytesLE__frQ3R0BPaGRHruiChJfyhA_2endians2(((NU32) (size_3)), T27_);
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
X5BX5Deq___qJlVOFBL4jBLOAqY9cXVxDQ((&(*pb).buffer), T26_, T27_, 4);
|
|
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
(*pb).offset = ((NI) 4); }
|
|
goto LA6_;
|
|
LA23_: ;
|
|
{
|
|
#line 366 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protobuf/minprotobuf.nim"
|
|
(*pb).offset = ((NI) 0); }
|
|
LA6_: ;
|
|
}
|