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.

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.

StdFileReader
class StdFileReader

A simple file reader continuously reading into a 1 byte buffer and appending it to the data. Ensures data is never buffered on any platform at the cost of being a lot more CPU intensive.

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

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