Struct FileStream
Accesses the contents of a file as a stream.
struct FileStream
;
Properties
Name | Type | Description |
---|---|---|
dataAvailableForRead [get]
|
bool | |
empty [get]
|
bool | |
fd [get]
|
int | |
isOpen [get]
|
bool | Determines if the file stream is still open |
leastSize [get]
|
ulong | |
path [get]
|
GenericPath!(vibe.core.path.PosixPathFormat) | The path of the file. |
readable [get]
|
bool | |
size [get]
|
ulong | |
writable [get]
|
bool |
Methods
Name | Description |
---|---|
close
()
|
Closes the file handle. |
finalize
()
|
|
flush
()
|
|
opCast
()
|
|
peek
()
|
|
read
(dst, mode)
|
|
read
(dst)
|
|
seek
(offset)
|
|
takeOwnershipOfFD
()
|
|
tell
()
|
|
truncate
(size)
|
|
write
(bytes, mode)
|
|
write
(bytes)
|
|
write
(bytes)
|
|
write
(stream, nbytes)
|