Skip to main content
@tevm/voltaire
@tevm/voltaire / index / BrandedBytes3

BrandedBytes3

Variables

BytesType3

const BytesType3: object
Defined in: src/primitives/Bytes/Bytes3/index.ts:16

Type Declaration

clone()
clone: (bytes) => Bytes3Type
Clone Bytes3
Parameters
bytes
Bytes3Type Bytes3 to clone
Returns
Bytes3Type Cloned Bytes3
Example
compare()
compare: (a, b) => -1 | 0 | 1
Parameters
a
Bytes3Type
b
Bytes3Type
Returns
-1 | 0 | 1
equals()
equals: (a, b) => boolean
Parameters
a
Bytes3Type
b
Bytes3Type
Returns
boolean
from()
from: (value) => Bytes3Type
Parameters
value
string | Uint8Array<ArrayBufferLike>
Returns
Bytes3Type
fromHex()
fromHex: (hex) => Bytes3Type
Parameters
hex
HexType
Returns
Bytes3Type
size()
size: (_bytes) => 3
Get size of Bytes3 (always 3)
Parameters
_bytes
Bytes3Type Bytes3
Returns
3 Size (always 3)
Example
toBytes()
toBytes: (bytes) => BytesType
Convert Bytes3 to generic Bytes
Parameters
bytes
Bytes3Type Bytes3 to convert
Returns
BytesType Generic Bytes
Example
toHex()
toHex: (bytes) => HexType
Convert Bytes3 to hex string
Parameters
bytes
Bytes3Type Bytes3 to convert
Returns
HexType Hex string
Example

Functions

clone()

clone(bytes): Bytes3Type
Defined in: src/primitives/Bytes/Bytes3/clone.js:12 Clone Bytes3

Parameters

bytes
Bytes3Type Bytes3 to clone

Returns

Bytes3Type Cloned Bytes3

Example


compare()

compare(a, b): -1 | 0 | 1
Defined in: src/primitives/Bytes/Bytes3/compare.js:6

Parameters

a
Bytes3Type
b
Bytes3Type

Returns

-1 | 0 | 1

equals()

equals(a, b): boolean
Defined in: src/primitives/Bytes/Bytes3/equals.js:6

Parameters

a
Bytes3Type
b
Bytes3Type

Returns

boolean

from()

from(value): Bytes3Type
Defined in: src/primitives/Bytes/Bytes3/from.js:8

Parameters

value
string | Uint8Array<ArrayBufferLike>

Returns

Bytes3Type

fromHex()

fromHex(hex): Bytes3Type
Defined in: src/primitives/Bytes/Bytes3/fromHex.js:8

Parameters

hex
HexType

Returns

Bytes3Type

size()

size(_bytes): 3
Defined in: src/primitives/Bytes/Bytes3/size.js:12 Get size of Bytes3 (always 3)

Parameters

_bytes
Bytes3Type Bytes3

Returns

3 Size (always 3)

Example


toBytes()

toBytes(bytes): BytesType
Defined in: src/primitives/Bytes/Bytes3/toBytes.js:12 Convert Bytes3 to generic Bytes

Parameters

bytes
Bytes3Type Bytes3 to convert

Returns

BytesType Generic Bytes

Example


toHex()

toHex(bytes): HexType
Defined in: src/primitives/Bytes/Bytes3/toHex.js:12 Convert Bytes3 to hex string

Parameters

bytes
Bytes3Type Bytes3 to convert

Returns

HexType Hex string

Example

References

Bytes3Type

Re-exports Bytes3Type