• Ross Light's avatar
    Add getFd method to FdInputStream and FdOutputStream · 1c2fb362
    Ross Light authored
    These methods are useful if you're receiving a generic stream in
    application code and would like to check some non-stream behavior about
    the file (e.g. stat or isatty).  Of course, downcasting can fail and
    code should not rely on the file descriptor being available.
    1c2fb362
io.h 15.2 KB