W3cubDocs

/Kotlin

immutableBlobOf

Platform and version requirements: Native (1.3)
fun immutableBlobOf(vararg elements: Short): ImmutableBlob

Creates ImmutableBlob out of compile-time constant data.

This method accepts values of Short type in range 0x00..0xff, other values are prohibited.

One element still represent one byte in the output data. This is the only way to create ImmutableBlob for now.

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.native/immutable-blob-of.html