Files
api/docs/assets/js/158.ed7e6315.js
T
2019-02-26 15:22:01 +00:00

1 line
24 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(window.webpackJsonp=window.webpackJsonp||[]).push([[158],{691:function(t,e,r){"use strict";r.r(e);var _=r(46),a=Object(_.a)({},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("p",[r("em",[r("strong",[t._v("name")])]),t._v(": Vector")]),t._v(" "),r("p",[r("em",[r("strong",[t._v("description")])]),t._v(": This manages codec arrays. Internally it keeps track of the length (as decoded) and allows construction with the passed "),r("code",[t._v("Type")]),t._v(" in the constructor. It is an extension to Array, providing specific encoding/decoding on top of the base type.")]),t._v(" "),r("h1",{attrs:{id:"type-parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters","aria-hidden":"true"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),r("h4",{attrs:{id:"t-codec"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#t-codec","aria-hidden":"true"}},[t._v("#")]),t._v(" T : "),r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html"}},[t._v("Codec")])],1),t._v(" "),r("h1",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy","aria-hidden":"true"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("p",[r("code",[t._v("Array")]),t._v("<"),r("code",[t._v("T")]),t._v(">")]),t._v(" "),r("p",[r("strong",[t._v("↳ Vector")])]),t._v(" "),r("p",[t._v("↳ "),r("router-link",{attrs:{to:"/types/classes/_type_extrinsics_.extrinsics.html"}},[t._v("Extrinsics")])],1),t._v(" "),r("p",[t._v("↳ "),r("router-link",{attrs:{to:"/types/classes/_type_digest_.authoritieschange.html"}},[t._v("AuthoritiesChange")])],1),t._v(" "),r("p",[t._v("↳ "),r("router-link",{attrs:{to:"/types/classes/_type_extrinsicstatus_.broadcast.html"}},[t._v("Broadcast")])],1),t._v(" "),r("h1",{attrs:{id:"implements"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#implements","aria-hidden":"true"}},[t._v("#")]),t._v(" Implements")]),t._v(" "),r("ul",[r("li",[r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html"}},[t._v("Codec")])],1)]),t._v(" "),r("h1",{attrs:{id:"indexable"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexable","aria-hidden":"true"}},[t._v("#")]),t._v(" Indexable")]),t._v(" "),r("p",[t._v("[n: "),r("code",[t._v("number")]),t._v("]: "),r("code",[t._v("T")])]),t._v(" "),r("h1",{attrs:{id:"constructors"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#constructors","aria-hidden":"true"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),r("p",[r("a",{attrs:{id:"constructor"}})]),t._v(" "),r("h2",{attrs:{id:"constructor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#constructor","aria-hidden":"true"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),r("p",[t._v("⊕ "),r("strong",[t._v("new Vector")]),t._v("(Type: "),r("em",[r("router-link",{attrs:{to:"/types/interfaces/_types_.constructor.html"}},[t._v("Constructor")]),t._v("<"),r("code",[t._v("T")]),t._v(">")],1),t._v(", value?: "),r("em",[r("router-link",{attrs:{to:"/types/classes/_codec_vector_.vector.html"}},[t._v("Vector")]),t._v("<"),r("code",[t._v("any")]),t._v("> | "),r("code",[t._v("Uint8Array")]),t._v(" | "),r("code",[t._v("string")]),t._v(" | "),r("code",[t._v("Array")]),t._v("<"),r("code",[t._v("any")]),t._v(">")],1),t._v("): "),r("router-link",{attrs:{to:"/types/classes/_codec_vector_.vector.html"}},[t._v("Vector")])],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/Vector.ts#L22",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Vector.ts:22"),r("OutboundLink")],1)])]),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("Default value")])])]),t._v(" "),r("tbody",[r("tr",[r("td",[t._v("Type")]),t._v(" "),r("td",[r("router-link",{attrs:{to:"/types/interfaces/_types_.constructor.html"}},[t._v("Constructor")]),t._v("<"),r("code",[t._v("T")]),t._v(">")],1),t._v(" "),r("td",[t._v("-")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("Default value")]),t._v(" value")]),t._v(" "),r("td",[r("router-link",{attrs:{to:"/types/classes/_codec_vector_.vector.html"}},[t._v("Vector")]),t._v("<"),r("code",[t._v("any")]),t._v("> | "),r("code",[t._v("Uint8Array")]),t._v(" | "),r("code",[t._v("string")]),t._v(" | "),r("code",[t._v("Array")]),t._v("<"),r("code",[t._v("any")]),t._v(">")],1),t._v(" "),r("td",[t._v("[] as Array<any>")])])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("router-link",{attrs:{to:"/types/classes/_codec_vector_.vector.html"}},[t._v("Vector")])],1),t._v(" "),r("hr"),t._v(" "),r("h1",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties","aria-hidden":"true"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("p",[r("a",{attrs:{id:"array"}})]),t._v(" "),r("h2",{attrs:{id:"static-array"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#static-array","aria-hidden":"true"}},[t._v("#")]),t._v(" "),r("code",[t._v("<Static>")]),t._v(" Array")]),t._v(" "),r("p",[r("strong",[t._v("● Array")]),t._v(": "),r("em",[r("code",[t._v("ArrayConstructor")])])]),t._v(" "),r("p",[r("em",[t._v("Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:1368")])]),t._v(" "),r("hr"),t._v(" "),r("h1",{attrs:{id:"accessors"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#accessors","aria-hidden":"true"}},[t._v("#")]),t._v(" Accessors")]),t._v(" "),r("p",[r("a",{attrs:{id:"type"}})]),t._v(" "),r("h2",{attrs:{id:"type"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type","aria-hidden":"true"}},[t._v("#")]),t._v(" Type")]),t._v(" "),r("p",[r("strong",[t._v("get Type")]),t._v("(): "),r("code",[t._v("string")])]),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/Vector.ts#L66",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Vector.ts:66"),r("OutboundLink")],1)])]),t._v(" "),r("p",[r("em",[r("strong",[t._v("description")])]),t._v(": The type for the items")]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("code",[t._v("string")])]),t._v(" "),r("hr"),t._v(" "),r("p",[r("a",{attrs:{id:"encodedlength"}})]),t._v(" "),r("h2",{attrs:{id:"encodedlength"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#encodedlength","aria-hidden":"true"}},[t._v("#")]),t._v(" encodedLength")]),t._v(" "),r("p",[r("strong",[t._v("get encodedLength")]),t._v("(): "),r("code",[t._v("number")])]),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/Vector.ts#L73",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Vector.ts:73"),r("OutboundLink")],1)])]),t._v(" "),r("p",[r("em",[r("strong",[t._v("description")])]),t._v(": The length of the value when encoded as a Uint8Array")]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("code",[t._v("number")])]),t._v(" "),r("hr"),t._v(" "),r("p",[r("a",{attrs:{id:"isempty"}})]),t._v(" "),r("h2",{attrs:{id:"isempty"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#isempty","aria-hidden":"true"}},[t._v("#")]),t._v(" isEmpty")]),t._v(" "),r("p",[r("strong",[t._v("get isEmpty")]),t._v("(): "),r("code",[t._v("boolean")])]),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/Vector.ts#L59",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Vector.ts:59"),r("OutboundLink")],1)])]),t._v(" "),r("p",[r("em",[r("strong",[t._v("description")])]),t._v(": Checks if the value is an empty value")]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("code",[t._v("boolean")])]),t._v(" "),r("hr"),t._v(" "),r("p",[r("a",{attrs:{id:"length"}})]),t._v(" "),r("h2",{attrs:{id:"length"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#length","aria-hidden":"true"}},[t._v("#")]),t._v(" length")]),t._v(" "),r("p",[r("strong",[t._v("get length")]),t._v("(): "),r("code",[t._v("number")])]),t._v(" "),r("p",[r("em",[t._v("Overrides Array.length")])]),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/Vector.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Vector.ts:82"),r("OutboundLink")],1)])]),t._v(" "),r("p",[r("em",[r("strong",[t._v("description")])]),t._v(": The length of the value")]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("code",[t._v("number")])]),t._v(" "),r("hr"),t._v(" "),r("h1",{attrs:{id:"methods"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods","aria-hidden":"true"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),r("p",[r("a",{attrs:{id:"eq"}})]),t._v(" "),r("h2",{attrs:{id:"eq"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#eq","aria-hidden":"true"}},[t._v("#")]),t._v(" eq")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("eq")]),t._v("(other?: "),r("em",[r("code",[t._v("any")])]),t._v("): "),r("code",[t._v("boolean")])]),t._v(" "),r("p",[r("em",[t._v("Implementation of "),r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html"}},[t._v("Codec")]),t._v("."),r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html#eq"}},[t._v("eq")])],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/Vector.ts#L90",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Vector.ts:90"),r("OutboundLink")],1)])]),t._v(" "),r("p",[r("em",[r("strong",[t._v("description")])]),t._v(": Compares the value of the input to see if there is a match")]),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("tbody",[r("tr",[r("td",[r("code",[t._v("Optional")]),t._v(" other")]),t._v(" "),r("td",[r("code",[t._v("any")])])])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("code",[t._v("boolean")])]),t._v(" "),r("hr"),t._v(" "),r("p",[r("a",{attrs:{id:"filter"}})]),t._v(" "),r("h2",{attrs:{id:"filter"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#filter","aria-hidden":"true"}},[t._v("#")]),t._v(" filter")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("filter")]),t._v("(callbackfn: "),r("em",[r("code",[t._v("function")])]),t._v(", thisArg?: "),r("em",[r("code",[t._v("any")])]),t._v("): "),r("code",[t._v("Array")]),t._v("<"),r("code",[t._v("T")]),t._v(">")]),t._v(" "),r("p",[r("em",[t._v("Overrides Array.filter")])]),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/Vector.ts#L173",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Vector.ts:173"),r("OutboundLink")],1)])]),t._v(" "),r("p",[r("em",[r("strong",[t._v("description")])]),t._v(": Filters the array with the callback")]),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("callbackfn")]),t._v(" "),r("td",[r("code",[t._v("function")])]),t._v(" "),r("td",[t._v("The filter function")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("Optional")]),t._v(" thisArg")]),t._v(" "),r("td",[r("code",[t._v("any")])]),t._v(" "),r("td",[t._v("The `this` object to apply the result to")])])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("code",[t._v("Array")]),t._v("<"),r("code",[t._v("T")]),t._v(">")]),t._v(" "),r("hr"),t._v(" "),r("p",[r("a",{attrs:{id:"indexof"}})]),t._v(" "),r("h2",{attrs:{id:"indexof"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexof","aria-hidden":"true"}},[t._v("#")]),t._v(" indexOf")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("indexOf")]),t._v("(_other?: "),r("em",[r("code",[t._v("any")])]),t._v("): "),r("code",[t._v("number")])]),t._v(" "),r("p",[r("em",[t._v("Overrides Array.indexOf")])]),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/Vector.ts#L97",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Vector.ts:97"),r("OutboundLink")],1)])]),t._v(" "),r("p",[r("em",[r("strong",[t._v("description")])]),t._v(": Finds the index of the value in the array")]),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("tbody",[r("tr",[r("td",[r("code",[t._v("Optional")]),t._v(" _other")]),t._v(" "),r("td",[r("code",[t._v("any")])])])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("code",[t._v("number")])]),t._v(" "),r("hr"),t._v(" "),r("p",[r("a",{attrs:{id:"map"}})]),t._v(" "),r("h2",{attrs:{id:"map"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#map","aria-hidden":"true"}},[t._v("#")]),t._v(" map")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("map")]),t._v("<"),r("code",[t._v("U")]),t._v(">(callbackfn: "),r("em",[r("code",[t._v("function")])]),t._v(", thisArg?: "),r("em",[r("code",[t._v("any")])]),t._v("): "),r("code",[t._v("Array")]),t._v("<"),r("code",[t._v("U")]),t._v(">")]),t._v(" "),r("p",[r("em",[t._v("Overrides Array.map")])]),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/Vector.ts#L182",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Vector.ts:182"),r("OutboundLink")],1)])]),t._v(" "),r("p",[r("em",[r("strong",[t._v("description")])]),t._v(": Maps the array with the callback")]),t._v(" "),r("p",[r("strong",[t._v("Type parameters:")])]),t._v(" "),r("h4",{attrs:{id:"u"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#u","aria-hidden":"true"}},[t._v("#")]),t._v(" U")]),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("callbackfn")]),t._v(" "),r("td",[r("code",[t._v("function")])]),t._v(" "),r("td",[t._v("The mapping function")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("Optional")]),t._v(" thisArg")]),t._v(" "),r("td",[r("code",[t._v("any")])]),t._v(" "),r("td",[t._v("The `this` onject to apply the result to")])])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("code",[t._v("Array")]),t._v("<"),r("code",[t._v("U")]),t._v(">")]),t._v(" "),r("hr"),t._v(" "),r("p",[r("a",{attrs:{id:"toarray"}})]),t._v(" "),r("h2",{attrs:{id:"toarray"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#toarray","aria-hidden":"true"}},[t._v("#")]),t._v(" toArray")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("toArray")]),t._v("(): "),r("code",[t._v("Array")]),t._v("<"),r("code",[t._v("T")]),t._v(">")]),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/Vector.ts#L115",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Vector.ts:115"),r("OutboundLink")],1)])]),t._v(" "),r("p",[r("em",[r("strong",[t._v("description")])]),t._v(": Converts the Object to an standard JavaScript Array")]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("code",[t._v("Array")]),t._v("<"),r("code",[t._v("T")]),t._v(">")]),t._v(" "),r("hr"),t._v(" "),r("p",[r("a",{attrs:{id:"tohex"}})]),t._v(" "),r("h2",{attrs:{id:"tohex"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tohex","aria-hidden":"true"}},[t._v("#")]),t._v(" toHex")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("toHex")]),t._v("(): "),r("code",[t._v("string")])]),t._v(" "),r("p",[r("em",[t._v("Implementation of "),r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html"}},[t._v("Codec")]),t._v("."),r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html#tohex"}},[t._v("toHex")])],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/Vector.ts#L122",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Vector.ts:122"),r("OutboundLink")],1)])]),t._v(" "),r("p",[r("em",[r("strong",[t._v("description")])]),t._v(": Returns a hex string representation of the value")]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("code",[t._v("string")])]),t._v(" "),r("hr"),t._v(" "),r("p",[r("a",{attrs:{id:"tojson"}})]),t._v(" "),r("h2",{attrs:{id:"tojson"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tojson","aria-hidden":"true"}},[t._v("#")]),t._v(" toJSON")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("toJSON")]),t._v("(): "),r("code",[t._v("any")])]),t._v(" "),r("p",[r("em",[t._v("Implementation of "),r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html"}},[t._v("Codec")]),t._v("."),r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html#tojson"}},[t._v("toJSON")])],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/Vector.ts#L129",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Vector.ts:129"),r("OutboundLink")],1)])]),t._v(" "),r("p",[r("em",[r("strong",[t._v("description")])]),t._v(": Converts the Object to JSON, typically used for RPC transfers")]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("code",[t._v("any")])]),t._v(" "),r("hr"),t._v(" "),r("p",[r("a",{attrs:{id:"tostring"}})]),t._v(" "),r("h2",{attrs:{id:"tostring"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tostring","aria-hidden":"true"}},[t._v("#")]),t._v(" toString")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("toString")]),t._v("(): "),r("code",[t._v("string")])]),t._v(" "),r("p",[r("em",[t._v("Implementation of "),r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html"}},[t._v("Codec")]),t._v("."),r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html#tostring"}},[t._v("toString")])],1)]),t._v(" "),r("p",[r("em",[t._v("Overrides Array.toString")])]),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/Vector.ts#L138",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Vector.ts:138"),r("OutboundLink")],1)])]),t._v(" "),r("p",[r("em",[r("strong",[t._v("description")])]),t._v(": Returns the string representation of the value")]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("code",[t._v("string")])]),t._v(" "),r("hr"),t._v(" "),r("p",[r("a",{attrs:{id:"tou8a"}})]),t._v(" "),r("h2",{attrs:{id:"tou8a"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tou8a","aria-hidden":"true"}},[t._v("#")]),t._v(" toU8a")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("toU8a")]),t._v("(isBare?: "),r("em",[r("code",[t._v("undefined")]),t._v(" | "),r("code",[t._v("false")]),t._v(" | "),r("code",[t._v("true")])]),t._v("): "),r("code",[t._v("Uint8Array")])]),t._v(" "),r("p",[r("em",[t._v("Implementation of "),r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html"}},[t._v("Codec")]),t._v("."),r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html#tou8a"}},[t._v("toU8a")])],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/Vector.ts#L151",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Vector.ts:151"),r("OutboundLink")],1)])]),t._v(" "),r("p",[r("em",[r("strong",[t._v("description")])]),t._v(": Encodes the value as a Uint8Array as per the parity-codec specifications")]),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",[r("code",[t._v("Optional")]),t._v(" isBare")]),t._v(" "),r("td",[r("code",[t._v("undefined")]),t._v(" | "),r("code",[t._v("false")]),t._v(" | "),r("code",[t._v("true")])]),t._v(" "),r("td",[t._v("true when the value has none of the type-specific prefixes (internal)")])])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("code",[t._v("Uint8Array")])]),t._v(" "),r("hr"),t._v(" "),r("p",[r("a",{attrs:{id:"decodevector"}})]),t._v(" "),r("h2",{attrs:{id:"static-decodevector"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#static-decodevector","aria-hidden":"true"}},[t._v("#")]),t._v(" "),r("code",[t._v("<Static>")]),t._v(" decodeVector")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("decodeVector")]),t._v("<"),r("code",[t._v("T")]),t._v(">(Type: "),r("em",[r("router-link",{attrs:{to:"/types/interfaces/_types_.constructor.html"}},[t._v("Constructor")]),t._v("<"),r("code",[t._v("T")]),t._v(">")],1),t._v(", value: "),r("em",[r("router-link",{attrs:{to:"/types/classes/_codec_vector_.vector.html"}},[t._v("Vector")]),t._v("<"),r("code",[t._v("any")]),t._v("> | "),r("code",[t._v("Uint8Array")]),t._v(" | "),r("code",[t._v("string")]),t._v(" | "),r("code",[t._v("Array")]),t._v("<"),r("code",[t._v("any")]),t._v(">")],1),t._v("): "),r("code",[t._v("Array")]),t._v("<"),r("code",[t._v("T")]),t._v(">")]),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/Vector.ts#L32",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Vector.ts:32"),r("OutboundLink")],1)])]),t._v(" "),r("p",[r("strong",[t._v("Type parameters:")])]),t._v(" "),r("h4",{attrs:{id:"t-codec-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#t-codec-2","aria-hidden":"true"}},[t._v("#")]),t._v(" T : "),r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html"}},[t._v("Codec")])],1),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("tbody",[r("tr",[r("td",[t._v("Type")]),t._v(" "),r("td",[r("router-link",{attrs:{to:"/types/interfaces/_types_.constructor.html"}},[t._v("Constructor")]),t._v("<"),r("code",[t._v("T")]),t._v(">")],1)]),t._v(" "),r("tr",[r("td",[t._v("value")]),t._v(" "),r("td",[r("router-link",{attrs:{to:"/types/classes/_codec_vector_.vector.html"}},[t._v("Vector")]),t._v("<"),r("code",[t._v("any")]),t._v("> | "),r("code",[t._v("Uint8Array")]),t._v(" | "),r("code",[t._v("string")]),t._v(" | "),r("code",[t._v("Array")]),t._v("<"),r("code",[t._v("any")]),t._v(">")],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("code",[t._v("Array")]),t._v("<"),r("code",[t._v("T")]),t._v(">")]),t._v(" "),r("hr"),t._v(" "),r("p",[r("a",{attrs:{id:"with"}})]),t._v(" "),r("h2",{attrs:{id:"static-with"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#static-with","aria-hidden":"true"}},[t._v("#")]),t._v(" "),r("code",[t._v("<Static>")]),t._v(" with")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("with")]),t._v("<"),r("code",[t._v("O")]),t._v(">(Type: "),r("em",[r("router-link",{attrs:{to:"/types/interfaces/_types_.constructor.html"}},[t._v("Constructor")]),t._v("<"),r("code",[t._v("O")]),t._v(">")],1),t._v("): "),r("router-link",{attrs:{to:"/types/interfaces/_types_.constructor.html"}},[t._v("Constructor")]),t._v("<"),r("router-link",{attrs:{to:"/types/classes/_codec_vector_.vector.html"}},[t._v("Vector")]),t._v("<"),r("code",[t._v("O")]),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/Vector.ts#L48",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Vector.ts:48"),r("OutboundLink")],1)])]),t._v(" "),r("p",[r("strong",[t._v("Type parameters:")])]),t._v(" "),r("h4",{attrs:{id:"o-codec"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#o-codec","aria-hidden":"true"}},[t._v("#")]),t._v(" O : "),r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html"}},[t._v("Codec")])],1),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("tbody",[r("tr",[r("td",[t._v("Type")]),t._v(" "),r("td",[r("router-link",{attrs:{to:"/types/interfaces/_types_.constructor.html"}},[t._v("Constructor")]),t._v("<"),r("code",[t._v("O")]),t._v(">")],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("router-link",{attrs:{to:"/types/interfaces/_types_.constructor.html"}},[t._v("Constructor")]),t._v("<"),r("router-link",{attrs:{to:"/types/classes/_codec_vector_.vector.html"}},[t._v("Vector")]),t._v("<"),r("code",[t._v("O")]),t._v(">>")],1),t._v(" "),r("hr")])},[],!1,null,null,null);e.default=a.exports}}]);