[−][src]Struct quake3_qvm::QVM
A Quake 3 virtual machine image.
A VM consists of instructions and data, where data is separated into
- word-sized data
- byte-sized data (LIT)
- uninitialized data (BSS)
Implementations
impl QVM
[src]
pub fn new(
code: Vec<Instruction>,
data: Vec<u32>,
lit: Vec<u8>,
bss_length: u32
) -> Result<QVM>
[src]
code: Vec<Instruction>,
data: Vec<u32>,
lit: Vec<u8>,
bss_length: u32
) -> Result<QVM>
pub fn instructions(&self) -> &Vec<Instruction>
[src]
Returns the instructions of the code segment.
pub fn data(&self) -> &Vec<u32>
[src]
Returns the word-sized data of the data segment.
pub fn lit(&self) -> &Vec<u8>
[src]
Returns the byte-sized data of the LIT segment.
pub fn bss_length(&self) -> u32
[src]
Returns the length of the uninitialized BSS segment.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for QVM
impl Send for QVM
impl Sync for QVM
impl Unpin for QVM
impl UnwindSafe for QVM
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,