Hi *,

On 4/19/20 5:31 PM, Alessio Vanni wrote:
> In my opinion, a nicer approach could be something based on Java's
> Buffer object from the NIO package.  For example (again no error
> checking; also the names could use some more work):

We already have something exactly like that:

https://git.gnunet.org/gnunet.git/tree/src/include/gnunet_buffer_lib.h

Maybe it makes more sense to add new functionality to the buffer lib?
I.e., teach the buffer lib to read from / write to files, in a similar
fashion to the Java NIO that you've mentioned.  We can also add some
other ways to read/parse data, such as the ones Christian suggested.

Then we can remove BIO eventually, as it's not a nice API
("abomination") and sits at a weird level of abstraction.

- Florian

Reply via email to