Subject: Re: [std-proposals] BytesReadable & BytesWritable Traits
From: connor horman (chorman64_at_[hidden])
Date: 2019-12-01 12:54:41
Yes indeed, or serializing pre-encoded arrays of bytes, which have a known
format. In fact, my library discourages use of raw IO, and provides a
method to wrap the raw io to perform serialization according to a binary IO
specification I am working on. However, the usefulness of raw serialization
is enough to warrant it continuing to exist, hence limiting it by
expressing UB that basically already exists.
On Sun, Dec 1, 2019 at 13:41 Lyberta via Std-Proposals <
> connor horman via Std-Proposals:
> > I am working on a library in C++ that has IO Capabilities, and as part of
> > the library, I define a couple of named requirements that types being
> > written or read "raw"
> Obvious note that this makes data non-portable and only useful for
> inter-process communication on the same ABI.
> I'm working on a proposal that provides safe and portable IO by default:
> Unsafe IO such as memcpy-ing structs can be coded as specializations in
> my design.
> Std-Proposals mailing list
STD-PROPOSALS list run by firstname.lastname@example.org
Standard Proposals Archives on Google Groups