#[repr(transparent)]
pub struct WriteableProcessSlice { /* private fields */ }
Expand description

Read-writeable and accessible slice of memory of a process buffer

The only way to obtain this struct is through a ReadWriteProcessBuffer.

Slices provide a more convenient, traditional interface to process memory. These slices are transient, as the underlying buffer must be checked each time a slice is created. This is usually enforced by the anonymous lifetime defined by the creation of the slice.

Implementations

Copy the contents of a WriteableProcessSlice into a mutable slice reference.

The length of self must be the same as dest. Subslicing can be used to obtain a slice of matching length.

Panics

This function will panic if self.len() != dest.len().

Copy the contents of a WriteableProcessSlice into a mutable slice reference.

The length of self must be the same as dest. Subslicing can be used to obtain a slice of matching length.

Copy the contents of a slice of bytes into a WriteableProcessSlice.

The length of src must be the same as self. Subslicing can be used to obtain a slice of matching length.

Panics

This function will panic if src.len() != self.len().

Copy the contents of a slice of bytes into a WriteableProcessSlice.

The length of src must be the same as self. Subslicing can be used to obtain a slice of matching length.

Trait Implementations

Converts to this type from the input type.

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more