served.lsp.filereader

Undocumented in source.

Members

Classes

FileReader
class FileReader

Base class for file readers which can read a file or standard handle line by line in a Fiber context, yielding until a line is available.

PosixFileReader
class PosixFileReader

A file reader implementation using the POSIX select API using events. Reads as much content as possible when new data is available at once, making the file reading operation much more efficient when large chunks of data are being transmitted.

PosixStdinReader
class PosixStdinReader

A file reader implementation using the POSIX select API using events. Reads as much content as possible when new data is available at once, making the file reading operation much more efficient when large chunks of data are being transmitted.

WindowsFileReader
class WindowsFileReader

A file reader implementation using the Win32 API using events. Reads as much content as possible when new data is available at once, making the file reading operation much more efficient when large chunks of data are being transmitted.

WindowsStdinReader
class WindowsStdinReader

A file reader implementation using the Win32 API using events. Reads as much content as possible when new data is available at once, making the file reading operation much more efficient when large chunks of data are being transmitted.

Functions

newFileReader
FileReader newFileReader(File stdFile)

Creates a new FileReader using the GC reading from stdin using a platform optimized implementation or StdFileReader if none is available.

newStdinReader
FileReader newStdinReader()

Creates a new FileReader using the GC reading from stdin using a platform optimized implementation or StdFileReader if none is available.

readCodeWithBuffer
char[] readCodeWithBuffer(string file, ubyte[] buffer, size_t maxLen)

Reads a file into a given buffer with a specified maximum length. If the file is bigger than the buffer, the buffer will be resized using the GC and updated through the ref argument.

Meta