Move function prototype to a better location in the header.
@@ -69,6 +69,9 @@ ioReadLine(IoRead *const this)
return ioReadLineParam(this, false);
}
+// Read varint-128 encoding
+uint64_t ioReadVarIntU64(IoRead *this);
+
// Are there bytes ready to read immediately? There are no guarantees on how much data is available to read but it must be at least
// one byte.
typedef struct IoReadReadyParam
@@ -77,9 +80,6 @@ typedef struct IoReadReadyParam
bool error; // Error when read not ready
} IoReadReadyParam;
-// Read varint-128 encoding
-uint64_t ioReadVarIntU64(IoRead *this);
-
#define ioReadReadyP(this, ...) \
ioReadReady(this, (IoReadReadyParam){VAR_PARAM_INIT, __VA_ARGS__})
