Skip to content

Commit

Permalink
Docs: Add decodeSequentially possible skipping decodeElementIndex (#1924
Browse files Browse the repository at this point in the history
)
  • Loading branch information
hfhbd committed May 4, 2022
1 parent 7848924 commit ce8b05f
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -411,6 +411,8 @@ public interface CompositeDecoder {
* return descriptor.getElementIndex(nextKey) // getElementIndex can return UNKNOWN_NAME
* }
* ```
*
* If [decodeSequentially] returns `true`, the caller might skip calling this method.
*/
public fun decodeElementIndex(descriptor: SerialDescriptor): Int

Expand Down

0 comments on commit ce8b05f

Please sign in to comment.