libasync ~master (2021-10-01T13:41:16Z)
Dub
Repo
AsyncFile.read
libasync
file
AsyncFile
Reads the file into the buffer starting at offset byte position.
bool
read
(string file_path, size_t len, ulong off, bool create_if_not_exists, bool truncate_if_exists)
bool
read
(string file_path, ubyte[] buffer, ulong off, bool create_if_not_exists, bool truncate_if_exists)
class
AsyncFile
nothrow
bool
read
(
string
file_path
,
shared
ubyte
[]
buffer
,
ulong
off
= -1
,
bool
create_if_not_exists
= true
,
bool
truncate_if_exists
= false
)
Meta
Source
See Implementation
libasync
file
AsyncFile
constructors
this
functions
append
buffer
handler
kill
onReady
read
write
properties
cmdInfo
error
file
filePath
offset
status
waiting
Reads the file into the buffer starting at offset byte position.