PreviousUpNext

14.4.148  Winix_File_For_Os__Premicrothread

The standard library Winix_File_For_Os__Premicrothread api defines a cross-platform interface file I/O interface which is implemented by platform-specific code.

The Winix_File_For_Os__Premicrothread api is include-ed by src/lib/std/src/io/winix-data-file-for-os–premicrothread.api.

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

See also: Winix_Pure_File_For_Os__Premicrothread.

See also: Winix_File_For_Os. The above information is manually maintained and may contain errors.

api {
    Vector;
    Element;
    Input_Stream;
    Output_Stream;
    read : Input_Stream -> Vector;
    read_one : Input_Stream -> Null_Or(Element );
    read_n : (Input_Stream , Int) -> Vector;
    read_all : Input_Stream -> Vector;
    peek : Input_Stream -> Null_Or(Element );
    close_input : Input_Stream -> Void;
    end_of_stream : Input_Stream -> Bool;
    write : (Output_Stream , Vector) -> Void;
    write_one : (Output_Stream , Element) -> Void;
    flush : Output_Stream -> Void;
    close_output : Output_Stream -> Void;
        package pur
          : api {
                Vector;
                Element;
                Filereader;
                Filewriter;
                Input_Stream;
                Output_Stream;
                File_Position;
                Out_Position;
                make_instream : (Filereader , Vector) -> Input_Stream;
                read : Input_Stream -> (Vector , Input_Stream);
                read_one : Input_Stream -> Null_Or(((Element , Input_Stream)) );
                read_n : (Input_Stream , Int) -> (Vector , Input_Stream);
                read_all : Input_Stream -> (Vector , Input_Stream);
                close_input : Input_Stream -> Void;
                end_of_stream : Input_Stream -> Bool;
                get_reader : Input_Stream -> (Filereader , Vector);
                file_position_in : Input_Stream -> File_Position;
                make_outstream : (Filewriter , io_exceptions::Buffering_Mode) -> Output_Stream;
                write : (Output_Stream , Vector) -> Void;
                write_one : (Output_Stream , Element) -> Void;
                flush : Output_Stream -> Void;
                close_output : Output_Stream -> Void;
                set_buffering_mode : (Output_Stream , io_exceptions::Buffering_Mode) -> Void;
                get_buffering_mode : Output_Stream -> io_exceptions::Buffering_Mode;
                get_writer : Output_Stream -> (Filewriter , io_exceptions::Buffering_Mode);
                file_pos_out : Out_Position -> File_Position;
                get_output_position : Output_Stream -> Out_Position;
                set_output_position : Out_Position -> Void;};;
    make_instream : pur::Input_Stream -> Input_Stream;
    get_instream : Input_Stream -> pur::Input_Stream;
    set_instream : (Input_Stream , pur::Input_Stream) -> Void;
    get_output_position : Output_Stream -> pur::Out_Position;
    set_output_position : (Output_Stream , pur::Out_Position) -> Void;
    make_outstream : pur::Output_Stream -> Output_Stream;
    get_outstream : Output_Stream -> pur::Output_Stream;
    set_outstream : (Output_Stream , pur::Output_Stream) -> Void;
    sharing pur::Element = Element
    sharing pur::Vector = Vector};


Comments and suggestions to: bugs@mythryl.org

PreviousUpNext