Skip to content

Commit ce8b05f

Browse files
authored
Docs: Add decodeSequentially possible skipping decodeElementIndex (#1924)
1 parent 7848924 commit ce8b05f

File tree

1 file changed

+2
-0
lines changed
  • core/commonMain/src/kotlinx/serialization/encoding

1 file changed

+2
-0
lines changed

core/commonMain/src/kotlinx/serialization/encoding/Decoding.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,8 @@ public interface CompositeDecoder {
411411
* return descriptor.getElementIndex(nextKey) // getElementIndex can return UNKNOWN_NAME
412412
* }
413413
* ```
414+
*
415+
* If [decodeSequentially] returns `true`, the caller might skip calling this method.
414416
*/
415417
public fun decodeElementIndex(descriptor: SerialDescriptor): Int
416418

0 commit comments

Comments
 (0)