beginCollection
open fun beginCollection(descriptor: SerialDescriptor, collectionSize: Int): CompositeEncoder(source)
Encodes the beginning of the collection with size collectionSize and the given serializer of its type parameters. This method has to be implemented only if you need to know collection size in advance, otherwise, beginStructure can be used.