From 9a9f467162268b29c3c57570342189bf923ce416 Mon Sep 17 00:00:00 2001 From: "leonid.stashevsky" Date: Fri, 10 Jan 2025 13:37:50 +0100 Subject: [PATCH] Update API Dump --- ktor-io/api/ktor-io.api | 13 +++++++++++++ ktor-io/api/ktor-io.klib.api | 7 +++++++ 2 files changed, 20 insertions(+) diff --git a/ktor-io/api/ktor-io.api b/ktor-io/api/ktor-io.api index c3b884f3a6..7d3d2a497c 100644 --- a/ktor-io/api/ktor-io.api +++ b/ktor-io/api/ktor-io.api @@ -113,6 +113,10 @@ public final class io/ktor/utils/io/ByteReadChannelOperations_jvmKt { public static final fun skipDelimiter (Lio/ktor/utils/io/ByteReadChannel;Lkotlinx/io/bytestring/ByteString;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } +public final class io/ktor/utils/io/ByteReadChannelSourceKt { + public static final fun asSource (Lio/ktor/utils/io/ByteReadChannel;)Lkotlinx/io/RawSource; +} + public abstract interface class io/ktor/utils/io/ByteWriteChannel { public abstract fun cancel (Ljava/lang/Throwable;)V public abstract fun flush (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -169,6 +173,10 @@ public final class io/ktor/utils/io/ByteWriteChannelOperations_jvmKt { public static final fun writeFully (Lio/ktor/utils/io/ByteWriteChannel;Ljava/nio/ByteBuffer;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } +public final class io/ktor/utils/io/ByteWriteChannelSinkKt { + public static final fun asSink (Lio/ktor/utils/io/ByteWriteChannel;)Lkotlinx/io/RawSink; +} + public abstract interface class io/ktor/utils/io/ChannelJob { public abstract fun getJob ()Lkotlinx/coroutines/Job; } @@ -255,6 +263,10 @@ public final class io/ktor/utils/io/ReaderScope : kotlinx/coroutines/CoroutineSc public fun getCoroutineContext ()Lkotlin/coroutines/CoroutineContext; } +public final class io/ktor/utils/io/SinkByteWriteChannelKt { + public static final fun asByteWriteChannel (Lkotlinx/io/RawSink;)Lio/ktor/utils/io/ByteWriteChannel; +} + public final class io/ktor/utils/io/WriterJob : io/ktor/utils/io/ChannelJob { public final fun getChannel ()Lio/ktor/utils/io/ByteReadChannel; public fun getJob ()Lkotlinx/coroutines/Job; @@ -570,6 +582,7 @@ public abstract class io/ktor/utils/io/pool/SingleInstancePool : io/ktor/utils/i } public final class io/ktor/utils/io/streams/StreamsKt { + public static final fun asByteWriteChannel (Ljava/io/OutputStream;)Lio/ktor/utils/io/ByteWriteChannel; public static final fun asInput (Ljava/io/InputStream;)Lkotlinx/io/Source; public static final fun inputStream (Lkotlinx/io/Source;)Ljava/io/InputStream; public static final fun readPacketAtLeast (Ljava/io/InputStream;I)Lkotlinx/io/Source; diff --git a/ktor-io/api/ktor-io.klib.api b/ktor-io/api/ktor-io.klib.api index 55c7cd72c8..ced29529dd 100644 --- a/ktor-io/api/ktor-io.klib.api +++ b/ktor-io/api/ktor-io.klib.api @@ -378,6 +378,7 @@ final fun (kotlinx.coroutines/CoroutineScope).io.ktor.utils.io/writer(kotlin.cor final fun (kotlinx.coroutines/CoroutineScope).io.ktor.utils.io/writer(kotlin.coroutines/CoroutineContext = ..., kotlin/Boolean = ..., kotlin.coroutines/SuspendFunction1): io.ktor.utils.io/WriterJob // io.ktor.utils.io/writer|writer@kotlinx.coroutines.CoroutineScope(kotlin.coroutines.CoroutineContext;kotlin.Boolean;kotlin.coroutines.SuspendFunction1){}[0] final fun (kotlinx.io/Buffer).io.ktor.utils.io.core/canRead(): kotlin/Boolean // io.ktor.utils.io.core/canRead|canRead@kotlinx.io.Buffer(){}[0] final fun (kotlinx.io/Buffer).io.ktor.utils.io.core/readBytes(kotlin/Int = ...): kotlin/ByteArray // io.ktor.utils.io.core/readBytes|readBytes@kotlinx.io.Buffer(kotlin.Int){}[0] +final fun (kotlinx.io/RawSink).io.ktor.utils.io/asByteWriteChannel(): io.ktor.utils.io/ByteWriteChannel // io.ktor.utils.io/asByteWriteChannel|asByteWriteChannel@kotlinx.io.RawSink(){}[0] final fun (kotlinx.io/Sink).io.ktor.utils.io.core/append(kotlin/CharSequence, kotlin/Int = ..., kotlin/Int = ...) // io.ktor.utils.io.core/append|append@kotlinx.io.Sink(kotlin.CharSequence;kotlin.Int;kotlin.Int){}[0] final fun (kotlinx.io/Sink).io.ktor.utils.io.core/build(): kotlinx.io/Source // io.ktor.utils.io.core/build|build@kotlinx.io.Sink(){}[0] final fun (kotlinx.io/Sink).io.ktor.utils.io.core/writeFully(kotlin/ByteArray, kotlin/Int = ..., kotlin/Int = ...) // io.ktor.utils.io.core/writeFully|writeFully@kotlinx.io.Sink(kotlin.ByteArray;kotlin.Int;kotlin.Int){}[0] @@ -592,6 +593,12 @@ sealed class io.ktor.utils.io.errors/PosixException : kotlin/Exception { // io.k } } +// Targets: [native] +final fun (io.ktor.utils.io/ByteReadChannel).io.ktor.utils.io/asSource(): kotlinx.io/RawSource // io.ktor.utils.io/asSource|asSource@io.ktor.utils.io.ByteReadChannel(){}[0] + +// Targets: [native] +final fun (io.ktor.utils.io/ByteWriteChannel).io.ktor.utils.io/asSink(): kotlinx.io/RawSink // io.ktor.utils.io/asSink|asSink@io.ktor.utils.io.ByteWriteChannel(){}[0] + // Targets: [native] final fun (kotlinx.io/Sink).io.ktor.utils.io.core/write(kotlin/Function3>, kotlin/Long, kotlin/Long, kotlin/Long>): kotlin/Long // io.ktor.utils.io.core/write|write@kotlinx.io.Sink(kotlin.Function3>,kotlin.Long,kotlin.Long,kotlin.Long>){}[0]