Converting functions

# Name Description Complexity
1 addressFromPublicKey(ByteVector): Address Converts account public key to address 82
2 parseInt(String): Int|Unit Converts the string representation of a number to its integer equivalent 20
3 parseIntValue(String): Int Converts the string representation of a number to its integer equivalent.
Raises an exception if the string cannot be parsed
20
4 toBytes(Boolean): ByteVector Converts a boolean to an array of bytes 1
5 toBytes(Int): ByteVector Converts an integer to an array of bytes 1
6 toBytes(String): ByteVector Converts a string to an array of bytes 1
7 toInt(ByteVector): Int Converts an array of bytes to an integer 10
8 toInt(ByteVector, Int): Int Converts an array of bytes to an integer starting from a certain index 10
9 toString(Boolean): String Converts a boolean to a string 1
10 toString(Int): String Converts an integer to a string 1
11 toUtf8String(ByteVector): String Converts an array of bytes to a UTF-8 string 20

addressFromPublicKey(ByteVector): Address

Converts account public key to address.

addressFromPublicKey(publicKey: ByteVector): Int

Parameters

publicKey: ByteVector

The public key to convert.

parseInt(String): Int|Unit

Converts the string representation of a number to its integer equivalent.

parseInt(str: String): Int|Unit

Parameters

str: String

The string to parse.

parseIntValue(String): Int

Converts the string representation of a number to its integer equivalent.

Raises an exception if the string cannot be parsed.

parseIntValue(str: String): Int

Parameters

str: String

The string to parse.

toBytes(Boolean): ByteVector

Converts a boolean to an array of bytes.

toBytes(b: Boolean): ByteVector

Parameters

b: Boolean

The boolean to convert.

toBytes(Int): ByteVector

Converts an integer to an array of bytes.

toBytes(n: Int): ByteVector

Parameters

n: Int

The integer to convert.

toBytes(String): ByteVector

Converts a string to an array of bytes.

toBytes(s: String): ByteVector

Parameters

s: String

The string to convert.

toInt(ByteVector): Int

Converts an array of bytes to an integer.

toInt(bin: ByteVector) : Int

Parameters

bin: ByteVector

The array of bytes to convert.

toInt(ByteVector, Int): Int

Converts an array of bytes to an integer starting from a certain index.

toInt(bin: ByteVector, offset: Int): Int

Parameters

bin: ByteVector

The array of bytes to convert.

offset: Int

The index to start from.

toString(Boolean): String

Converts a boolean to a string.

toString(b: Boolean): String

Parameters

b: Boolean

The boolean to convert.

toString(Int): String

Converts an integer to a string.

toString(n: Int): String

Parameters

n: Int

The integer to convert.

toUtf8String(ByteVector): String

Converts an array of bytes to a UTF-8 string.

toUtf8String(u: ByteVector): String

Parameters

u: ByteVector

The array of bytes to convert.

results matching ""

    No results matching ""