[go: up one dir, main page]

EndianRcSlice

Type Alias EndianRcSlice 

Source
pub type EndianRcSlice<Endian> = EndianReader<Endian, Rc<[u8]>>;
Expand description

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);

Aliased Typeยง

pub struct EndianRcSlice<Endian> { /* private fields */ }