@tevm/voltaire / index / BrandedBytes5
BrandedBytes5
Variables
BytesType5
Defined in: src/primitives/Bytes/Bytes5/index.ts:16constBytesType5:object
Type Declaration
clone()
clone: (Clone Bytes5bytes) =>Bytes5Type
Parameters
bytes
Bytes5Type
Bytes5 to clone
Returns
Bytes5Type
Cloned Bytes5
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) =>Bytes5Type
Parameters
value
string | Uint8Array<ArrayBufferLike>
Returns
Bytes5Type
fromHex()
fromHex: (hex) =>Bytes5Type
Parameters
hex
HexType
Returns
Bytes5Type
size()
size: (Get size of Bytes5 (always 5)_bytes) =>5
Parameters
_bytes
Bytes5Type
Bytes5
Returns
5
Size (always 5)
Example
toBytes()
toBytes: (Convert Bytes5 to generic Bytesbytes) =>BytesType
Parameters
bytes
Bytes5Type
Bytes5 to convert
Returns
BytesType
Generic Bytes
Example
toHex()
toHex: (Convert Bytes5 to hex stringbytes) =>HexType
Parameters
bytes
Bytes5Type
Bytes5 to convert
Returns
HexType
Hex string
Example
Functions
clone()
clone(Defined in: src/primitives/Bytes/Bytes5/clone.js:12 Clone Bytes5bytes):Bytes5Type
Parameters
bytes
Bytes5Type
Bytes5 to clone
Returns
Bytes5Type
Cloned Bytes5
Example
compare()
compare(Defined in: src/primitives/Bytes/Bytes5/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/Bytes5/equals.js:2a,b):boolean
Parameters
a
Uint8Array<ArrayBufferLike>
b
Uint8Array<ArrayBufferLike>
Returns
boolean
from()
from(Defined in: src/primitives/Bytes/Bytes5/from.js:8value):Bytes5Type
Parameters
value
string | Uint8Array<ArrayBufferLike>
Returns
Bytes5Type
fromHex()
fromHex(Defined in: src/primitives/Bytes/Bytes5/fromHex.js:8hex):Bytes5Type
Parameters
hex
HexType
Returns
Bytes5Type
size()
size(Defined in: src/primitives/Bytes/Bytes5/size.js:12 Get size of Bytes5 (always 5)_bytes):5
Parameters
_bytes
Bytes5Type
Bytes5
Returns
5
Size (always 5)
Example
toBytes()
toBytes(Defined in: src/primitives/Bytes/Bytes5/toBytes.js:12 Convert Bytes5 to generic Bytesbytes):BytesType
Parameters
bytes
Bytes5Type
Bytes5 to convert
Returns
BytesType
Generic Bytes
Example
toHex()
toHex(Defined in: src/primitives/Bytes/Bytes5/toHex.js:12 Convert Bytes5 to hex stringbytes):HexType
Parameters
bytes
Bytes5Type
Bytes5 to convert
Returns
HexType
Hex string

