(&self, data: &mut [u8])
| 45 | |
| 46 | impl Uuid { |
| 47 | pub fn bytes(&self, data: &mut [u8]) { |
| 48 | match self { |
| 49 | Uuid::Uuid16(uuid) => data.copy_from_slice(&uuid.to_be_bytes()), |
| 50 | Uuid::Uuid128(uuid) => data.copy_from_slice(uuid), |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | pub fn get_type(&self) -> u8 { |
| 55 | match self { |