MCPcopy Create free account
hub / github.com/bjoernQ/bleps / bytes

Method bytes

bleps/src/att.rs:47–52  ·  view source on GitHub ↗
(&self, data: &mut [u8])

Source from the content-addressed store, hash-verified

45
46impl 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 {

Callers 1

gattFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected