Converts `self` to little endian from target's endianness.
(self)
| 143 | |
| 144 | /// Converts `self` to little endian from target's endianness. |
| 145 | pub fn to_le(self) -> Self { |
| 146 | if cfg!(target_endian = "little") { |
| 147 | self |
| 148 | } else { |
| 149 | self.swap_bytes() |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | /// Write a [DataValue] to a slice in native-endian byte order. |
| 154 | /// |