pub fn add_attachment(&self, attachment_name: &str, buffer: &[u8]) -> Result<(), Error> {
        let attachment_name = CString::new(attachment_name).unwrap_or_default();
        Error::from((self.api_record.k4a_record_add_attachment)(
            self.handle,
            attachment_name.as_ptr(),
            buffer.as_ptr(),
            buffer.len() as size_t,
        ))
        .to_result(())
    }
/// Adds an attachment to the recording
Adds an attachment to the recording
Adds an attachment to the recording
pub fn add_attachment(&self, attachment_name: &str, buffer: &[u8]) -> Result<(), Error> {
        let attachment_name = CString::new(attachment_name).unwrap_or_default();
        Error::from((self.api_record.k4a_record_add_attachment)(
            self.handle,
            attachment_name.as_ptr(),
            buffer.as_ptr(),
            buffer.len() as size_t,
        ))
        .to_result(())
    }
pub fn add_attachment ( & self , attachment_name : & str , buffer : & [ u8 ] ) -> Result < ( ) , Error > { let attachment_name = CString :: new ( attachment_name ) . unwrap_or_default ( ) ; Error :: from ( ( self . api_record . k4a_record_add_attachment ) ( self . handle , attachment_name . as_ptr ( ) , buffer . as_ptr ( ) , buffer . len ( ) as size_t , ) ) . to_result ( ( ) ) }
Adds an attachment to the recording
Adds an attachment to the recording
&self
attachment_name
&str
buffer
&[u8]