CFile

A Stream wrapper for a C file of type FILE*.

Constructors

this
this(FILE* cfile, FileMode mode, bool seekable)

Create the stream wrapper for the given C file.

Destructor

~this
~this()

Closes the stream.

Members

Functions

close
void close()
eof
bool eof()

Overrides of the Stream methods to call the underlying FILE* C functions.

flush
void flush()
getc
char getc()
readBlock
size_t readBlock(void* buffer, size_t size)
seek
ulong seek(long offset, SeekPos rel)
ungetc
char ungetc(char c)
writeBlock
size_t writeBlock(void* buffer, size_t size)
writeLine
void writeLine(const(char)[] s)
writeLineW
void writeLineW(const(wchar)[] s)

Overrides of the Stream methods to call the underlying FILE* C functions.

Properties

file
FILE* file [@property getter]
FILE* file [@property setter]

Property to get or set the underlying file for this stream. Setting the file marks the stream as open.

Variables

cfile
FILE* cfile;
Undocumented in source.

Meta