From 65db34ad0db55749d45128f42b19c2562cd50273 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Wed, 21 Nov 2018 18:33:54 +0300 Subject: [PATCH] Clarify docs of immutableBlobOf --- runtime/src/main/kotlin/kotlin/native/Blob.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/runtime/src/main/kotlin/kotlin/native/Blob.kt b/runtime/src/main/kotlin/kotlin/native/Blob.kt index 5e02288bc77..3daa3873018 100644 --- a/runtime/src/main/kotlin/kotlin/native/Blob.kt +++ b/runtime/src/main/kotlin/kotlin/native/Blob.kt @@ -75,9 +75,10 @@ public fun ImmutableBlob.asUCPointer(offset: Int = 0): CPointer = private external fun ImmutableBlob.asCPointerImpl(offset: Int): kotlin.native.internal.NativePtr /** - * Creates ImmutableBlob out of compile-time constant data. - * This method accepts Short type, so that values in range 0x80 .. 0xff can be - * provided without toByte() cast or 'u' suffix. + * 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. */