Struct winsafe::MappedFile[][src]

pub struct MappedFile { /* fields omitted */ }
Expand description

Manages a memory-mapped file, which can be read/written through slices.

Implementations

Opens a file and maps it in memory according to the given permissions.

Returns the size of the file. This value is cached.

Returns a slice to the mapped memory.

Returns a mutable slice to the mapped memory.

Resizes the file, which will be remapped in memory. All slices must be recreated.

Trait Implementations

Executes the destructor for this type. 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

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.