Skip to main content
Module

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

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

Finishes the current array, and returns a Uint8Array containing everything written. The EncodeBuffer is left in an undefined state, and should not be used afterwards. Throws if asynchronous writes are still pending.

Returns

Uint8Array