petdance/scratch — Issue #909: TODO: integrate ByteBuffer better with FileHandle and Socket
Author: petdance
Created: 2011-11-14 06:02:19+00:00
State: open
Labels: Pri-normal, Sev-low, 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

Originally http://trac.parrot.org/parrot/ticket/2195