PreviousUpNext

14.4.141  Winix_Base_File_Io_Driver_For_Os__Premicrothread

The standard library Winix_Base_Io_Driver_For_Os__Premicrothread api defines the low-level api exported by the Mythryl platform-specific file I/O driver for a particular operating system.

The Winix_Base_Io_Driver_For_Os__Premicrothread api is implemented by the winix_base_file_io_driver_for_posix_g generic from src/lib/std/src/io/winix-base-file-io-driver-for-posix-g–premicrothread.pkg[

The Winix_Base_Io_Driver_For_Os__Premicrothread api source code is in src/lib/std/src/io/winix-base-file-io-driver-for-os–premicrothread.api.

The above information is manually maintained and may contain errors.

api {
    Element;
    Vector;
    Vector_Slice;
    Rw_Vector;
    Rw_Vector_Slice;
    eqtype File_Position;
    compare : (File_Position , File_Position) -> Order;
        Filereader
        = FILEREADER        {avail:Void -> Null_Or(Int ), best_io_quantum:Int, blockx:Null_Or((Void -> Void) ),
                            can_readx:Null_Or((Void -> Bool) ), close:Void -> Void,
                            end_file_position:Null_Or((Void -> File_Position) ), filename:String,
                            get_file_position:Null_Or((Void -> File_Position) ), io_descriptor:Null_Or(Int ),
                            read_vector:Int -> Vector, set_file_position:Null_Or((File_Position -> Void) ),
                            verify_file_position:Null_Or((Void -> File_Position) )};
        Filewriter
        = FILEWRITER
                {best_io_quantum:Int, blockx:Null_Or((Void -> Void) ), can_output:Null_Or((Void -> Bool) ),
                close:Void -> Void, end_file_position:Null_Or((Void -> File_Position) ), filename:String,
                get_file_position:Null_Or((Void -> File_Position) ), io_descriptor:Null_Or(Int ),
                set_file_position:Null_Or((File_Position -> Void) ),
                verify_file_position:Null_Or((Void -> File_Position) ),
                write_rw_vector:Null_Or((Rw_Vector_Slice -> Int) ), write_vector:Null_Or((Vector_Slice -> Int) )};
    open_vector : Vector -> Filereader;
    null_reader : Void -> Filereader;
    null_writer : Void -> Filewriter;
    augment_reader : Filereader -> Filereader;
    augment_writer : Filewriter -> Filewriter;};


Comments and suggestions to: bugs@mythryl.org

PreviousUpNext