Files
darkfi/src
parazyd 9066e55f00 rpc: Read byte-by-byte from stream and properly handle lines.
This wraps the reader side into a BufReader and read_from_stream now
reads byte-by-byte from the stream using an intermediate buffer.
The BufReader doc[0] claims that using this for such reading operation
is advantageous and useful for small and repeated reads to a socket.

read_from_stream stops reading after reaching LF, and optionally pops
CR from the back of the buffer to handle CRLF endings.

[0] https://docs.rs/smol/latest/smol/io/struct.BufReader.html
2023-11-20 11:36:43 +01:00
..
2023-10-26 20:57:04 +02:00
2023-11-17 15:55:23 -05:00
2023-08-22 19:55:37 +02:00
2023-08-29 13:08:35 +02:00
2023-10-27 09:02:18 +02:00
2023-11-09 14:20:57 +01:00
2023-08-29 13:08:35 +02:00
2023-08-22 19:55:37 +02:00
2023-11-08 09:57:16 -05:00