Skip to main content
Module

x/capi/mod.ts>$.EncodeBuffer#writeAsync

[WIP] A framework for crafting interactions with Substrate chains
Latest
method $.EncodeBuffer.prototype.writeAsync
Re-export
import { $ } from "https://deno.land/x/capi@v0.1.1-beta.1/mod.ts";
const { EncodeBuffer } = $;

Creates a sub-buffer that can be written into asynchronously. The buffer passed to the callback should not be used after the returned promise resolves.

Parameters

length: number
fn: (buffer: EncodeBuffer) => Promise<void>