Read a [DataValue] from a slice using a given [Type] in big-endian byte order. # Panics: Panics if the slice does not have enough space to accommodate the [DataValue]
(src: &[u8], ty: Type)
| 232 | /// |
| 233 | /// Panics if the slice does not have enough space to accommodate the [DataValue] |
| 234 | pub fn read_from_slice_be(src: &[u8], ty: Type) -> Self { |
| 235 | DataValue::read_from_slice_ne(src, ty).to_be() |
| 236 | } |
| 237 | |
| 238 | /// Read a [DataValue] from a slice using a given [Type] in little-endian byte order. |
| 239 | /// |