Kotlin HashSet toByteArray()
Syntax & Examples


Syntax of HashSet.toByteArray()

The syntax of HashSet.toByteArray() extension function is:

fun Collection<Byte>.toByteArray(): ByteArray

This toByteArray() extension function of HashSet returns an array of Byte containing all of the elements of this collection.