\brief Return the raw bytes of the value in native-endian byte order.
| 119 | |
| 120 | /// \brief Return the raw bytes of the value in native-endian byte order. |
| 121 | std::array<uint8_t, kByteWidth> ToBytes() const { |
| 122 | std::array<uint8_t, kByteWidth> out{{0}}; |
| 123 | memcpy(out.data(), array_.data(), kByteWidth); |
| 124 | return out; |
| 125 | } |
| 126 | |
| 127 | /// \brief Copy the raw bytes of the value in native-endian byte order. |
| 128 | void ToBytes(uint8_t* out) const { memcpy(out, array_.data(), kByteWidth); } |