Open skirwan opened 3 years ago
Current design runs the risk of data copying. Since reader instances never escape their calling scope we could potentially use unsafe pointers and sped things up with something like data.read { reader in ... }.
data.read { reader in ... }
Could also allow a reader.limitLength(to: ) { reader in ... } and make some of the UDP reliable stream code cleaner.
reader.limitLength(to: ) { reader in ... }
Current design runs the risk of data copying. Since reader instances never escape their calling scope we could potentially use unsafe pointers and sped things up with something like
data.read { reader in ... }
.