lucian1900/parrot — Issue #5: TODO: integrate ByteBuffer better with FileHandle and Socket
Author: lucian1900
Created: 2011-10-21 08:28:16+00:00
State: open
Labels: none, todo

It would be nice if the ByteBuffer PMC was better integrated with other subsystems. In particular

* the FileHandle has a read_bytes method, but no corresponding write_bytes (or .print() or whatever). Direct binary write operations on FileHandle would be most welcome.
* the Socket PMC would benefit from a read_bytes method too (or return a ByteBuffer from read(), but that's not backwards compatible)
* likewise writing a ByteBuffer to a Socket