MCPcopy Create free account
hub / github.com/elast0ny/shared_memory / create_mapping

Function create_mapping

src/windows.rs:270–272  ·  view source on GitHub ↗

Creates a mapping specified by the uid and size

(unique_id: &str, map_size: usize)

Source from the content-addressed store, hash-verified

268
269//Creates a mapping specified by the uid and size
270pub fn create_mapping(unique_id: &str, map_size: usize) -> Result<MapData, ShmemError> {
271 new_map(unique_id, map_size, true, false)
272}
273
274//Opens an existing mapping specified by its uid
275pub fn open_mapping(

Callers

nothing calls this directly

Calls 1

new_mapFunction · 0.85

Tested by

no test coverage detected