Read a [DataValue] from a slice using a given [Type] in little-endian byte order. # Panics: Panics if the slice does not have enough space to accommodate the [DataValue]
(src: &[u8], ty: Type)
| 241 | /// |
| 242 | /// Panics if the slice does not have enough space to accommodate the [DataValue] |
| 243 | pub fn read_from_slice_le(src: &[u8], ty: Type) -> Self { |
| 244 | DataValue::read_from_slice_ne(src, ty).to_le() |
| 245 | } |
| 246 | |
| 247 | /// Write a [DataValue] to a memory location in native-endian byte order. |
| 248 | pub unsafe fn write_value_to(&self, p: *mut u128) { |