read

fun read(bytes: ByteArray, start: Int, end: Int, fail: (String) -> CoapFormatException): OptionCodec.Parsed(source)

Reads options and payload from bytes[start, end); fail builds the exception to throw.