> On Feb 23, 2019, at 4:19 PM, Jason Thorpe <thor...@me.com> wrote:
>> On Feb 23, 2019, at 4:04 PM, matthew green <m...@eterna.com.au> wrote:
>> 
>> i like this.  the current API is ... odd.
>> 
>> can you add alignment documentation?  eg, if only to say that it
>> must support aligned or unaligned accesses for the relevant
>> datatypes.  not sure what we need currently, ie, if unaligned is
>> needed because that happens today, or we can define it as wrong
>> in this API.
> 
> Yah, I’ll make that clear.  It’s implicit in the current API (alpha would 
> blow up otherwise), but I will make it explicit.

I added the following:

<quote>
All addresses MUST be naturally-aligned for their type.  If unaligned
access is required, use copy(9).
</quote>

OK?

-- thorpej

Reply via email to