readCollection

fun <T> readCollection(    input: Input,     reader: BtcSerializer<T>,     maxElement: Int?,     protocolVersion: Long): List<T>
fun <T> readCollection(    input: Input,     reader: (Input, Long) -> T,     maxElement: Int?,     protocolVersion: Long): List<T>
fun <T> readCollection(    input: Input,     reader: BtcSerializer<T>,     protocolVersion: Long): List<T>