pub unsafe fn from_raw(ptr: *mut u8, size: usize) -> Option<Self> {
        if ptr.is_null() {
            None
        } else {
            Some(Bytes {
                bytes: &mut *ptr,
                size: size,
                _marker: Default::default(),
            })
        }
    }
/// Creates instance of `Bytes` from leveldb-allocated data.
///
/// Returns `None` if `ptr` is `null`.
Creates instance of `Bytes` from leveldb-allocated data.
Creates instance of ` Bytes ` from leveldb - allocated data .
pub unsafe fn from_raw(ptr: *mut u8, size: usize) -> Option<Self> {
        if ptr.is_null() {
            None
        } else {
            Some(Bytes {
                bytes: &mut *ptr,
                size: size,
                _marker: Default::default(),
            })
        }
    }
pub unsafe fn from_raw ( ptr : * mut u8 , size : usize ) -> Option < Self > { if ptr . is_null ( ) { None } else { Some ( Bytes { bytes : & mut * ptr , size : size , _marker : Default :: default ( ) , } ) } }
Creates instance of `Bytes` from leveldb-allocated data.
Creates instance of ` Bytes ` from leveldb - allocated data .
ptr
*mut u8
size
usize
ptr
*mut u8
size
usize