#ifndef THIRD_PARTY_UPB_WASM_ABI_MINI_TABLE_CONTAINER_DECODE_H_
#define THIRD_PARTY_UPB_WASM_ABI_MINI_TABLE_CONTAINER_DECODE_H_

#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>

#include "upb/base/status.h"
#include "upb/mem/arena.h"
#include "wasm_abi/mini_table/container.h"

// Must be last.
#include "upb/port/def.inc"

#ifdef __cplusplus
extern "C" {
#endif

// Build a MiniTable Container in the specified arena from the provided data.
// If any error occurs, returns NULL and sets a status message.
UPB_API upb_MiniTableContainer* upb_MiniTableContainer_Build(
    const char* data, size_t len, upb_Arena* arena, upb_Status* status);

#ifdef __cplusplus
} /* extern "C" */
#endif

#include "upb/port/undef.inc"

#endif  // THIRD_PARTY_UPB_WASM_ABI_MINI_TABLE_CONTAINER_DECODE_H_
