Read a length prefixed message from a stream.

stream_read_message(stream = "stdin", offset = -1, blocking = TRUE, cpp = TRUE)

Arguments

stream

The name of the stream to read from. Defaults to "stdin".

offset

The offset from the start of the file to start reading from.

blocking

Should the read be a blocking operation?

cpp

Should the C++ implementation be used? Defaults to TRUE.

Value

The message as a string.