File tree Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -111,8 +111,8 @@ public final class kotlinx/io/Segment {
111
111
public final synthetic fun getNext ()Lkotlinx/io/Segment;
112
112
public final synthetic fun getPos ()I
113
113
public final synthetic fun getPrev ()Lkotlinx/io/Segment;
114
- public final synthetic fun getRemainingCapacity ()I
115
- public final synthetic fun getSize ()I
114
+ public final fun getRemainingCapacity ()I
115
+ public final fun getSize ()I
116
116
public final synthetic fun setLimit (I)V
117
117
public final synthetic fun setNext (Lkotlinx/io/Segment;)V
118
118
public final synthetic fun setPos (I)V
Original file line number Diff line number Diff line change @@ -345,14 +345,20 @@ public class Segment {
345
345
limit + = srcEndOffset - srcStartOffset
346
346
}
347
347
348
- @PublishedApi
349
- @get:JvmSynthetic
350
- internal val size: Int
348
+ /* *
349
+ * The number of readable bytes contained in this segment.
350
+ *
351
+ * @sample kotlinx.io.samples.unsafe.UnsafeBufferOperationsSamples.readUleb128
352
+ */
353
+ public val size: Int
351
354
get() = limit - pos
352
355
353
- @PublishedApi
354
- @get:JvmSynthetic
355
- internal val remainingCapacity: Int
356
+ /* *
357
+ * The number of bytes that could be written into this segment.
358
+ *
359
+ * @sample kotlinx.io.samples.unsafe.UnsafeBufferOperationsSamples.writeUleb128Array
360
+ */
361
+ public val remainingCapacity: Int
356
362
get() = data.size - limit
357
363
358
364
/* *
You can’t perform that action at this time.
0 commit comments