fn key_strn_to_cstr(&mut self, key: &Strn) -> *const u8 {
        match key.rep {
            StrnRep::ByteStr(bs) => { self.key_to_cstr(bs) }
            StrnRep::CStr(cstr)  => { cstr }
        }
    }
/// Given a Strn key `key`, return a `*char` pointer that is null-terminated. Used for encoding COAP keys.
/// If `key` is null-terminated, return it as a pointer. Else copy `key` to the static key buffer,
/// append null and return the static key buffer as a pointer.
Given a Strn key `key`, return a `*char` pointer that is null-terminated. Used for encoding COAP keys.
If `key` is null-terminated, return it as a pointer. Else copy `key` to the static key buffer,
append null and return the static key buffer as a pointer.
Given a Strn key ` key ` return a ` * char ` pointer that is null - terminated . Used for encoding COAP keys . If ` key ` is null - terminated return it as a pointer . Else copy ` key ` to the static key buffer append null and return the static key buffer as a pointer .
fn key_strn_to_cstr(&mut self, key: &Strn) -> *const u8 {
        match key.rep {
            StrnRep::ByteStr(bs) => { self.key_to_cstr(bs) }
            StrnRep::CStr(cstr)  => { cstr }
        }
    }
fn key_strn_to_cstr ( & mut self , key : & Strn ) -> * const u8 { match key . rep { StrnRep :: ByteStr ( bs ) => { self . key_to_cstr ( bs ) } StrnRep :: CStr ( cstr ) => { cstr } } }
Given a Strn key `key`, return a `*char` pointer that is null-terminated.
Given a Strn key ` key ` return a ` * char ` pointer that is null - terminated .
&mut self
key
&Strn
&mut self
key
&Strn