pub fn write(&self, inp: &[u8]) {
        let mut len = inp.len();
        let size = self.len;
        if size < len {
            len = size;
        }
        unsafe {
            std::ptr::copy(inp.as_ptr(), self.ptr as *mut u8, len);
        }
    }
/// Writes bytes to a string channel's buffer
///
/// # Arguments
/// A slice of bytes to be copied into the channel's buffer
/// If this slice is longer than the channel's buffer, only
/// Channel's size elements would be copied from it
Writes bytes to a string channel's buffer
Writes bytes to a string channel ' s buffer
pub fn write(&self, inp: &[u8]) {
        let mut len = inp.len();
        let size = self.len;
        if size < len {
            len = size;
        }
        unsafe {
            std::ptr::copy(inp.as_ptr(), self.ptr as *mut u8, len);
        }
    }
pub fn write ( & self , inp : & [ u8 ] ) { let mut len = inp . len ( ) ; let size = self . len ; if size < len { len = size ; } unsafe { std :: ptr :: copy ( inp . as_ptr ( ) , self . ptr as * mut u8 , len ) ; } }
Writes bytes to a string channel's buffer
Writes bytes to a string channel ' s buffer
&self
inp
&[u8]
&self
inp
&[u8]