We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff3a81d commit adb9e36Copy full SHA for adb9e36
aws-crt-kotlin/native/src/aws/sdk/kotlin/crt/io/MutableBufferNative.kt
@@ -18,7 +18,8 @@ import libcrt.*
18
@OptIn(ExperimentalForeignApi::class)
19
public actual class MutableBuffer private constructor(
20
private val buffer: InnerBuffer,
21
-) : WithCrt(), Closeable {
+) : WithCrt(),
22
+ Closeable {
23
internal constructor(borrowed: CPointer<aws_byte_buf>) : this(InnerBuffer.Borrowed(borrowed))
24
25
/**
@@ -75,7 +76,8 @@ private sealed interface InnerBuffer {
75
76
*/
77
data class KBuffer(
78
private val dest: ByteArray,
- ) : WithCrt(), InnerBuffer {
79
+ ) : WithCrt(),
80
+ InnerBuffer {
81
private val pinned = dest.pin()
82
83
override val pointer: CPointer<aws_byte_buf> =
0 commit comments