pub fn write_dntstr(&mut self, val: &str){
        self.write_u8(0);
        self.write_bytes(val.as_bytes());
        self.write_u8(0);
    }
/// Write a null-bookeneded string to the buffer.
/// 
/// #Example
/// ```
/// # use databuffer::*;
/// let mut buffer = DataBuffer::new();
/// buffer.write_dntstr("Hello");
/// ```
Write a null-bookeneded string to the buffer.
Write a null - bookeneded string to the buffer .
pub fn write_dntstr(&mut self, val: &str){
        self.write_u8(0);
        self.write_bytes(val.as_bytes());
        self.write_u8(0);
    }
pub fn write_dntstr ( & mut self , val : & str ) { self . write_u8 ( 0 ) ; self . write_bytes ( val . as_bytes ( ) ) ; self . write_u8 ( 0 ) ; }
Write a null-bookeneded string to the buffer.
Write a null - bookeneded string to the buffer .
&mut self
val
&str
example
None
use databuffer::*;
let mut buffer = DataBuffer::new();
buffer.write_dntstr("Hello");
```
let mut buffer = DataBuffer :: new () ; buffer . write_dntstr ( " Hello " ) ; ` ` `