Ticket #2195 (new todo)

Opened 3 years ago

TODO: integrate ByteBuffer better with FileHandle and Socket

Reported by: moritz Owned by:
Priority: normal Milestone:
Component: none Version: 3.8.0
Severity: low Keywords: bytebuffer
Cc: Language: perl6
Patch status: Platform:

Description

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
Note: See TracTickets for help on using tickets.