@tevm/voltaire / index / BrandedBytes6
BrandedBytes6
Variables
BytesType6
Defined in: src/primitives/Bytes/Bytes6/index.ts:16constBytesType6:object
Type Declaration
clone()
clone: (Clone Bytes6bytes) =>Bytes6Type
Parameters
bytes
Bytes6Type
Bytes6 to clone
Returns
Bytes6Type
Cloned Bytes6
Example
compare()
compare: (a,b) =>-1|0|1
Parameters
a
Uint8Array<ArrayBufferLike>
b
Uint8Array<ArrayBufferLike>
Returns
-1 | 0 | 1
equals()
equals: (a,b) =>boolean
Parameters
a
Uint8Array<ArrayBufferLike>
b
Uint8Array<ArrayBufferLike>
Returns
boolean
from()
from: (value) =>Bytes6Type
Parameters
value
string | Uint8Array<ArrayBufferLike>
Returns
Bytes6Type
fromHex()
fromHex: (hex) =>Bytes6Type
Parameters
hex
HexType
Returns
Bytes6Type
size()
size: (Get size of Bytes6 (always 6)_bytes) =>6
Parameters
_bytes
Bytes6Type
Bytes6
Returns
6
Size (always 6)
Example
toBytes()
toBytes: (Convert Bytes6 to generic Bytesbytes) =>BytesType
Parameters
bytes
Bytes6Type
Bytes6 to convert
Returns
BytesType
Generic Bytes
Example
toHex()
toHex: (Convert Bytes6 to hex stringbytes) =>HexType
Parameters
bytes
Bytes6Type
Bytes6 to convert
Returns
HexType
Hex string
Example
Functions
clone()
clone(Defined in: src/primitives/Bytes/Bytes6/clone.js:12 Clone Bytes6bytes):Bytes6Type
Parameters
bytes
Bytes6Type
Bytes6 to clone
Returns
Bytes6Type
Cloned Bytes6
Example
compare()
compare(Defined in: src/primitives/Bytes/Bytes6/compare.js:2a,b):-1|0|1
Parameters
a
Uint8Array<ArrayBufferLike>
b
Uint8Array<ArrayBufferLike>
Returns
-1 | 0 | 1
equals()
equals(Defined in: src/primitives/Bytes/Bytes6/equals.js:2a,b):boolean
Parameters
a
Uint8Array<ArrayBufferLike>
b
Uint8Array<ArrayBufferLike>
Returns
boolean
from()
from(Defined in: src/primitives/Bytes/Bytes6/from.js:8value):Bytes6Type
Parameters
value
string | Uint8Array<ArrayBufferLike>
Returns
Bytes6Type
fromHex()
fromHex(Defined in: src/primitives/Bytes/Bytes6/fromHex.js:8hex):Bytes6Type
Parameters
hex
HexType
Returns
Bytes6Type
size()
size(Defined in: src/primitives/Bytes/Bytes6/size.js:12 Get size of Bytes6 (always 6)_bytes):6
Parameters
_bytes
Bytes6Type
Bytes6
Returns
6
Size (always 6)
Example
toBytes()
toBytes(Defined in: src/primitives/Bytes/Bytes6/toBytes.js:12 Convert Bytes6 to generic Bytesbytes):BytesType
Parameters
bytes
Bytes6Type
Bytes6 to convert
Returns
BytesType
Generic Bytes
Example
toHex()
toHex(Defined in: src/primitives/Bytes/Bytes6/toHex.js:12 Convert Bytes6 to hex stringbytes):HexType
Parameters
bytes
Bytes6Type
Bytes6 to convert
Returns
HexType
Hex string

