1 line
2.2 KiB
JavaScript
1 line
2.2 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[348],{605:function(t,e,r){"use strict";r.r(e);var a=r(46),o=Object(a.a)({},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"functions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#functions","aria-hidden":"true"}},[t._v("#")]),t._v(" Functions")]),t._v(" "),r("p",[r("a",{attrs:{id:"decodeu8a"}})]),t._v(" "),r("h2",{attrs:{id:"decodeu8a"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#decodeu8a","aria-hidden":"true"}},[t._v("#")]),t._v(" decodeU8a")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("decodeU8a")]),t._v("(u8a: "),r("em",[r("code",[t._v("Uint8Array")])]),t._v(", _types: "),r("em",[r("router-link",{attrs:{to:"/types/interfaces/_types_.constructor.html"}},[t._v("Constructor")]),t._v("[] | "),r("code",[t._v("object")])],1),t._v("): "),r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html"}},[t._v("Codec")]),t._v("[]")],1),t._v(" "),r("p",[r("em",[t._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/73a5ea1/packages/types/src/codec/utils/decodeU8a.ts#L14",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/utils/decodeU8a.ts:14"),r("OutboundLink")],1)])]),t._v(" "),r("p",[t._v("Given an u8a, and an array of Type constructors, decode the u8a against the types, and return an array of decoded values.")]),t._v(" "),r("p",[r("strong",[t._v("Parameters:")])]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",[t._v("Name")]),t._v(" "),r("th",[t._v("Type")]),t._v(" "),r("th",[t._v("Description")])])]),t._v(" "),r("tbody",[r("tr",[r("td",[t._v("u8a")]),t._v(" "),r("td",[r("code",[t._v("Uint8Array")])]),t._v(" "),r("td",[t._v("The u8a to decode.")])]),t._v(" "),r("tr",[r("td",[t._v("_types")]),t._v(" "),r("td",[r("router-link",{attrs:{to:"/types/interfaces/_types_.constructor.html"}},[t._v("Constructor")]),t._v("[] | "),r("code",[t._v("object")])],1),t._v(" "),r("td")])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html"}},[t._v("Codec")]),t._v("[]")],1),t._v(" "),r("hr")])},[],!1,null,null,null);e.default=o.exports}}]); |