vibe.d beta banner
get vibe.d
0.9.0

Asynchronous I/O that doesn’t get in your way, written in D

Struct FileStream

Accesses the contents of a file as a stream.

struct FileStream ;

Properties

NameTypeDescription
dataAvailableForRead[get] bool
empty[get] bool
fd[get] int
isOpen[get] boolDetermines 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

NameDescription
close () Closes the file handle.
finalize ()
flush ()
opCast ()
peek ()
read (dst, mode)
read (dst)
seek (offset)
takeOwnershipOfFD ()
tell ()
write (bytes, mode)
write (bytes)
write (bytes)
write (stream, nbytes)
Authors

Sönke Ludwig

Copyright

© 2012-2016 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.