AsyncFile.read

Creates a new buffer with the specified length and uses it to read the file data at the specified path starting at the specified offset byte.

  1. bool read(string file_path, size_t len, ulong off, bool create_if_not_exists, bool truncate_if_exists)
    class AsyncFile
    nothrow
    bool
    read
    (
    string file_path
    ,
    size_t len = 128
    ,
    ulong off = -1
    ,
    bool create_if_not_exists = true
    ,
    bool truncate_if_exists = false
    )
  2. bool read(string file_path, ubyte[] buffer, ulong off, bool create_if_not_exists, bool truncate_if_exists)

Meta