Write a [DataValue] to a memory location in native-endian byte order.
(&self, p: *mut u128)
| 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) { |
| 249 | let size = self.ty().bytes() as usize; |
| 250 | self.write_to_slice_ne(unsafe { core::slice::from_raw_parts_mut(p as *mut u8, size) }); |
| 251 | } |
| 252 | |
| 253 | /// Read a [DataValue] from a memory location using a given [Type] in native-endian byte order. |
| 254 | pub unsafe fn read_value_from(p: *const u128, ty: Type) -> Self { |
no test coverage detected