// 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 http://mozilla.org/MPL/2.0/.
//
// Copyright (c) DUSK NETWORK. All rights reserved.
use Vec;
/// Allocate memory inside WASM for JS to write into.
/// Returns a pointer to a buffer of size `size`.
pub extern "C"
/// Deallocate memory previously allocated with `alloc`.
///
/// # Safety
/// The pointer must have been returned by `alloc` with the same `size`.
/// The memory must not have been previously deallocated.
/// After calling this function, the pointer must no longer be used.
pub unsafe extern "C"