boostorg / boostorg/endian

Does p in endian_load()/endian_store() needs to point to a T-aligned region?

Open
#51 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
51
Forks
54
PR merge metrics
No merged PRs in 30d

Description

Documentation doesn't state this requirement clearly. Furthermore, these functions are part of the header conversion.hpp for which documentation states that alignment is required. I think it's correct to assume that T is aligned, but not p (otherwise I'd have to create an extra buffer and perform an extra memcpy for no good reason). What is the requirement for these functions?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.