[go: up one dir, main page]

Type Definition gimli::EndianRcSlice [] [src]

type EndianRcSlice<Endian> = EndianReader<Endian, Rc<[u8]>>;

A reference counted, non-thread-safe slice of bytes and associated endianity.

use std::rc::Rc;

let buf = Rc::from(&[1, 2, 3, 4][..]);
let reader = gimli::EndianRcSlice::new(buf, gimli::NativeEndian);