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