Need equivalent of Java's DataInputStream and DataOutputStream #31166
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
closed-not-planned
Closed as we don't intend to take action on the reported issue
I'm trying to do in Dart what I would do in Java like this:
A similar issue raised in 2012 has been closed with the comment "By using dart:typeddata and the new IOSink(writeBytes), it's now possible to do this". Well it may be possible, but it is far from clear to me how to do it. Could someone please show how to rewrite the above code in Dart?
If it takes more than 10 lines, please consider adding specialised classes to dart like this one by TomCaserta. (Tom's version is lacking in that it doesn't handle streams, doesn't implement readLong properly, and has a bug when trying to read a UTF string at the end of the byte array)
The text was updated successfully, but these errors were encountered: