19 lines
523 B
C
19 lines
523 B
C
/*
|
|
* nanowasm, a tiny WebAssembly/Wasm interpreter
|
|
* Copyright (C) 2023-2024 Xavier Del Campo Romero
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
#ifndef LEB128_H
|
|
#define LEB128_H
|
|
|
|
#include <stdio.h>
|
|
|
|
int leb128_read_unsigned(FILE *f, unsigned maxbits, unsigned long long *out);
|
|
int leb128_read_signed(FILE *f, unsigned maxbits, long long *out);
|
|
|
|
#endif
|