Files
api/docs/assets/js/146.7e0a8f84.js
T
2019-02-27 15:39:51 +00:00

1 line
24 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[146],{703:function(t,e,r){"use strict";r.r(e);var o=r(46),s=Object(o.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(": Compact")]),t._v(" "),r("p",[r("em",[r("strong",[t._v("description")])]),t._v(": A compact length-encoding codec wrapper. It performs the same function as Length, however differs in that it uses a variable number of bytes to do the actual encoding. This is mostly used by other types to add length-prefixed encoding, or in the case of wrapped types, taking a number and making the compact representation thereof")]),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("router-link",{attrs:{to:"/types/classes/_codec_base_.base.html"}},[t._v("Base")]),t._v("<"),r("router-link",{attrs:{to:"/types/classes/_codec_uint_.uint.html"}},[t._v("UInt")]),t._v(" | "),r("router-link",{attrs:{to:"/types/classes/_primitive_moment_.moment.html"}},[t._v("Moment")]),t._v(">")],1),t._v(" "),r("p",[r("strong",[t._v("↳ Compact")])]),t._v(" "),r("p",[t._v("↳ "),r("router-link",{attrs:{to:"/types/classes/_type_noncecompact_.noncecompact.html"}},[t._v("NonceCompact")])],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:"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 Compact")]),t._v("(Type: "),r("em",[r("router-link",{attrs:{to:"/types/interfaces/_types_.constructor.html"}},[t._v("Constructor")]),t._v("<"),r("router-link",{attrs:{to:"/types/classes/_codec_uint_.uint.html"}},[t._v("UInt")]),t._v(" | "),r("router-link",{attrs:{to:"/types/classes/_primitive_moment_.moment.html"}},[t._v("Moment")]),t._v(">")],1),t._v(", value?: "),r("em",[r("router-link",{attrs:{to:"/types/classes/_codec_compact_.compact.html"}},[t._v("Compact")]),t._v(" | "),r("router-link",{attrs:{to:"/types/modules/_types_.html#anynumber"}},[t._v("AnyNumber")])],1),t._v("): "),r("router-link",{attrs:{to:"/types/classes/_codec_compact_.compact.html"}},[t._v("Compact")])],1),t._v(" "),r("p",[r("em",[t._v("Overrides "),r("router-link",{attrs:{to:"/types/classes/_codec_base_.base.html"}},[t._v("Base")]),t._v("."),r("router-link",{attrs:{to:"/types/classes/_codec_base_.base.html#constructor"}},[t._v("constructor")])],1)]),t._v(" "),r("p",[r("em",[t._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/codec/Compact.ts#L23",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Compact.ts:23"),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("router-link",{attrs:{to:"/types/classes/_codec_uint_.uint.html"}},[t._v("UInt")]),t._v(" | "),r("router-link",{attrs:{to:"/types/classes/_primitive_moment_.moment.html"}},[t._v("Moment")]),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_compact_.compact.html"}},[t._v("Compact")]),t._v(" | "),r("router-link",{attrs:{to:"/types/modules/_types_.html#anynumber"}},[t._v("AnyNumber")])],1),t._v(" "),r("td",[t._v("0")])])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("router-link",{attrs:{to:"/types/classes/_codec_compact_.compact.html"}},[t._v("Compact")])],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:"addlengthprefix"}})]),t._v(" "),r("h2",{attrs:{id:"static-addlengthprefix"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#static-addlengthprefix","aria-hidden":"true"}},[t._v("#")]),t._v(" "),r("code",[t._v("<Static>")]),t._v(" addLengthPrefix")]),t._v(" "),r("p",[r("strong",[t._v("● addLengthPrefix")]),t._v(": "),r("em",[r("code",[t._v("compactAddLength")])]),t._v(" = compactAddLength")]),t._v(" "),r("p",[r("em",[t._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/codec/Compact.ts#L41",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Compact.ts:41"),r("OutboundLink")],1)])]),t._v(" "),r("p",[t._v("Prepend a Uint8Array with its compact length.")]),t._v(" "),r("p",[r("em",[r("strong",[t._v("param")])]),t._v(": The Uint8Array to be prefixed")]),t._v(" "),r("hr"),t._v(" "),r("p",[r("a",{attrs:{id:"decodeu8a"}})]),t._v(" "),r("h2",{attrs:{id:"static-decodeu8a"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#static-decodeu8a","aria-hidden":"true"}},[t._v("#")]),t._v(" "),r("code",[t._v("<Static>")]),t._v(" decodeU8a")]),t._v(" "),r("p",[r("strong",[t._v("● decodeU8a")]),t._v(": "),r("em",[r("code",[t._v("compactFromU8a")])]),t._v(" = compactFromU8a")]),t._v(" "),r("p",[r("em",[t._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/codec/Compact.ts#L42",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Compact.ts:42"),r("OutboundLink")],1)])]),t._v(" "),r("hr"),t._v(" "),r("p",[r("a",{attrs:{id:"encodeu8a"}})]),t._v(" "),r("h2",{attrs:{id:"static-encodeu8a"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#static-encodeu8a","aria-hidden":"true"}},[t._v("#")]),t._v(" "),r("code",[t._v("<Static>")]),t._v(" encodeU8a")]),t._v(" "),r("p",[r("strong",[t._v("● encodeU8a")]),t._v(": "),r("em",[r("code",[t._v("compactToU8a")])]),t._v(" = compactToU8a")]),t._v(" "),r("p",[r("em",[t._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/codec/Compact.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Compact.ts:43"),r("OutboundLink")],1)])]),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:"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/255b495/packages/types/src/codec/Compact.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Compact.ts:72"),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/255b495/packages/types/src/codec/Compact.ts#L79",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Compact.ts:79"),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("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:"bitlength"}})]),t._v(" "),r("h2",{attrs:{id:"bitlength"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bitlength","aria-hidden":"true"}},[t._v("#")]),t._v(" bitLength")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("bitLength")]),t._v("(): "),r("router-link",{attrs:{to:"/types/modules/_codec_abstractint_.html#uintbitlength"}},[t._v("UIntBitLength")])],1),t._v(" "),r("p",[r("em",[t._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/codec/Compact.ts#L86",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Compact.ts:86"),r("OutboundLink")],1)])]),t._v(" "),r("p",[r("em",[r("strong",[t._v("description")])]),t._v(": Returns the number of bits in the value")]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("router-link",{attrs:{to:"/types/modules/_codec_abstractint_.html#uintbitlength"}},[t._v("UIntBitLength")])],1),t._v(" "),r("hr"),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/255b495/packages/types/src/codec/Compact.ts#L93",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Compact.ts:93"),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:"tobn"}})]),t._v(" "),r("h2",{attrs:{id:"tobn"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tobn","aria-hidden":"true"}},[t._v("#")]),t._v(" toBn")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("toBn")]),t._v("(): "),r("code",[t._v("BN")])]),t._v(" "),r("p",[r("em",[t._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/codec/Compact.ts#L104",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Compact.ts:104"),r("OutboundLink")],1)])]),t._v(" "),r("p",[r("em",[r("strong",[t._v("description")])]),t._v(": Returns the BN representation of the number")]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("code",[t._v("BN")])]),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("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#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/255b495/packages/types/src/codec/Compact.ts#L111",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Compact.ts:111"),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("any")])]),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/255b495/packages/types/src/codec/Compact.ts#L118",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Compact.ts:118"),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:"tonumber"}})]),t._v(" "),r("h2",{attrs:{id:"tonumber"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tonumber","aria-hidden":"true"}},[t._v("#")]),t._v(" toNumber")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("toNumber")]),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/255b495/packages/types/src/codec/Compact.ts#L125",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Compact.ts:125"),r("OutboundLink")],1)])]),t._v(" "),r("p",[r("em",[r("strong",[t._v("description")])]),t._v(": Returns the number representation for 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("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("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/codec/Compact.ts#L132",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Compact.ts:132"),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/255b495/packages/types/src/codec/Compact.ts#L140",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Compact.ts:140"),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:"unwrap"}})]),t._v(" "),r("h2",{attrs:{id:"unwrap"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#unwrap","aria-hidden":"true"}},[t._v("#")]),t._v(" unwrap")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("unwrap")]),t._v("(): "),r("router-link",{attrs:{to:"/types/classes/_codec_uint_.uint.html"}},[t._v("UInt")]),t._v(" | "),r("router-link",{attrs:{to:"/types/classes/_primitive_moment_.moment.html"}},[t._v("Moment")])],1),t._v(" "),r("p",[r("em",[t._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/codec/Compact.ts#L147",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Compact.ts:147"),r("OutboundLink")],1)])]),t._v(" "),r("p",[r("em",[r("strong",[t._v("description")])]),t._v(": Returns the embedded "),r("router-link",{attrs:{to:"/types/classes/_codec_uint_.uint.html"}},[t._v("UInt")]),t._v(" or "),r("router-link",{attrs:{to:"/types/classes/_primitive_moment_.moment.html"}},[t._v("Moment")]),t._v(" value")],1),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("router-link",{attrs:{to:"/types/classes/_codec_uint_.uint.html"}},[t._v("UInt")]),t._v(" | "),r("router-link",{attrs:{to:"/types/classes/_primitive_moment_.moment.html"}},[t._v("Moment")])],1),t._v(" "),r("hr"),t._v(" "),r("p",[r("a",{attrs:{id:"decodecompact"}})]),t._v(" "),r("h2",{attrs:{id:"static-decodecompact"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#static-decodecompact","aria-hidden":"true"}},[t._v("#")]),t._v(" "),r("code",[t._v("<Static>")]),t._v(" decodeCompact")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("decodeCompact")]),t._v("(Type: "),r("em",[r("router-link",{attrs:{to:"/types/interfaces/_types_.constructor.html"}},[t._v("Constructor")]),t._v("<"),r("router-link",{attrs:{to:"/types/classes/_codec_uint_.uint.html"}},[t._v("UInt")]),t._v(" | "),r("router-link",{attrs:{to:"/types/classes/_primitive_moment_.moment.html"}},[t._v("Moment")]),t._v(">")],1),t._v(", value: "),r("em",[r("router-link",{attrs:{to:"/types/classes/_codec_compact_.compact.html"}},[t._v("Compact")]),t._v(" | "),r("router-link",{attrs:{to:"/types/modules/_types_.html#anynumber"}},[t._v("AnyNumber")])],1),t._v("): "),r("router-link",{attrs:{to:"/types/classes/_primitive_moment_.moment.html"}},[t._v("Moment")]),t._v(" | "),r("router-link",{attrs:{to:"/types/classes/_codec_uint_.uint.html"}},[t._v("UInt")])],1),t._v(" "),r("p",[r("em",[t._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/codec/Compact.ts#L51",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Compact.ts:51"),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("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("router-link",{attrs:{to:"/types/classes/_codec_uint_.uint.html"}},[t._v("UInt")]),t._v(" | "),r("router-link",{attrs:{to:"/types/classes/_primitive_moment_.moment.html"}},[t._v("Moment")]),t._v(">")],1)]),t._v(" "),r("tr",[r("td",[t._v("value")]),t._v(" "),r("td",[r("router-link",{attrs:{to:"/types/classes/_codec_compact_.compact.html"}},[t._v("Compact")]),t._v(" | "),r("router-link",{attrs:{to:"/types/modules/_types_.html#anynumber"}},[t._v("AnyNumber")])],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("router-link",{attrs:{to:"/types/classes/_primitive_moment_.moment.html"}},[t._v("Moment")]),t._v(" | "),r("router-link",{attrs:{to:"/types/classes/_codec_uint_.uint.html"}},[t._v("UInt")])],1),t._v(" "),r("hr"),t._v(" "),r("p",[r("a",{attrs:{id:"striplengthprefix"}})]),t._v(" "),r("h2",{attrs:{id:"static-striplengthprefix"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#static-striplengthprefix","aria-hidden":"true"}},[t._v("#")]),t._v(" "),r("code",[t._v("<Static>")]),t._v(" stripLengthPrefix")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("stripLengthPrefix")]),t._v("(u8a: "),r("em",[r("code",[t._v("Uint8Array")])]),t._v(", bitLength?: "),r("em",[r("router-link",{attrs:{to:"/types/modules/_codec_abstractint_.html#uintbitlength"}},[t._v("UIntBitLength")])],1),t._v("): "),r("code",[t._v("Uint8Array")])]),t._v(" "),r("p",[r("em",[t._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/codec/Compact.ts#L45",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Compact.ts:45"),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("u8a")]),t._v(" "),r("td",[r("code",[t._v("Uint8Array")])]),t._v(" "),r("td",[t._v("-")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("Default value")]),t._v(" bitLength")]),t._v(" "),r("td",[r("router-link",{attrs:{to:"/types/modules/_codec_abstractint_.html#uintbitlength"}},[t._v("UIntBitLength")])],1),t._v(" "),r("td",[t._v("DEFAULT_BITLENGTH")])])])]),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:"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("(Type: "),r("em",[r("router-link",{attrs:{to:"/types/interfaces/_types_.constructor.html"}},[t._v("Constructor")]),t._v("<"),r("router-link",{attrs:{to:"/types/classes/_codec_uint_.uint.html"}},[t._v("UInt")]),t._v(" | "),r("router-link",{attrs:{to:"/types/classes/_primitive_moment_.moment.html"}},[t._v("Moment")]),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_compact_.compact.html"}},[t._v("Compact")]),t._v(">")],1),t._v(" "),r("p",[r("em",[t._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/codec/Compact.ts#L28",target:"_blank",rel:"noopener noreferrer"}},[t._v("codec/Compact.ts:28"),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("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("router-link",{attrs:{to:"/types/classes/_codec_uint_.uint.html"}},[t._v("UInt")]),t._v(" | "),r("router-link",{attrs:{to:"/types/classes/_primitive_moment_.moment.html"}},[t._v("Moment")]),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_compact_.compact.html"}},[t._v("Compact")]),t._v(">")],1),t._v(" "),r("hr")])},[],!1,null,null,null);e.default=s.exports}}]);