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

