_bytes = std::as_bytes(std::span{ data }); print(data[0], const_bytes); auto const writable_bytes = std::as_writable_bytes(std::span{ data }); // 更改作为最高有效位的符号位( IEEE 754 浮点标准) writable_bytes[3] |= std::byte{ 0b1000'0000 }; print(data[0], const_bytes)...
() { /* mutable */ float data[1]{3.141592f}; auto const const_bytes = std::as_bytes(std::span{data}); print(data[0], const_bytes); auto const writable_bytes = std::as_writable_bytes(std::span{data}); // Change the sign bit that is the MSB (IEEE 754 Floating-Point ...