Skip to main content
Module

x/solc/deps.ts>Alloc

💎 Solidity compiler bindings for Deno
Latest
type alias Alloc
import { type Alloc } from "https://deno.land/x/solc@2.1.7/deps.ts";

Allocates a chunk of memory of size bytes.

Use this function inside callbacks to allocate data that is to be passed to the compiler. You may use solidity_free() or solidity_reset() to free this memory again, but it is not required as the compiler takes ownership for any data passed to it via callbacks.

This function will return NULL if the requested memory region could not be allocated.

definition: (size: number) => number