Struct bytes::SeqByteStr
[−]
[src]
pub struct SeqByteStr {
// some fields omitted
}Methods
impl SeqByteStr
fn from_slice(bytes: &[u8]) -> SeqByteStr
Create a new SeqByteStr from a byte slice.
The contents of the byte slice will be copied.
unsafe fn from_mem_ref(mem: MemRef, pos: u32, len: u32) -> SeqByteStr
Creates a new SeqByteStr from a MemRef, an offset, and a length.
This function is unsafe as there are no guarantees that the given arguments are valid.