Skip to content
Snippets Groups Projects
  • Simon Tatham's avatar
    bc1aa9c6
    Add BinarySink wrappers on existing forms of output. · bc1aa9c6
    Simon Tatham authored
    There's now a stdio_sink, whose write function calls fwrite on the
    given FILE *; a bufchain_sink, whose write function appends to the
    given bufchain; and on Windows there's a handle_sink whose write
    function writes to the given 'struct handle'. (That is, not the raw
    Windows HANDLE, but our event-loop-friendly wrapper on it.)
    
    Not yet used for anything, but they're about to be.
    bc1aa9c6
    History
    Add BinarySink wrappers on existing forms of output.
    Simon Tatham authored
    There's now a stdio_sink, whose write function calls fwrite on the
    given FILE *; a bufchain_sink, whose write function appends to the
    given bufchain; and on Windows there's a handle_sink whose write
    function writes to the given 'struct handle'. (That is, not the raw
    Windows HANDLE, but our event-loop-friendly wrapper on it.)
    
    Not yet used for anything, but they're about to be.