Function core::slice::raw::buf_as_slice[src]

pub unsafe fn buf_as_slice<T, U>(p: *T, len: uint, f: |v: &[T]| -> U) -> U

Form a slice from a pointer and length (as a number of units, not bytes).