Memory.map

bool map(out gst.map_info.MapInfo info, gst.types.MapFlags flags)

Fill info with the pointer and sizes of the memory in mem that can be accessed according to flags.

This function can return false for various reasons:

  • the memory backed by mem is not accessible with the given flags.
  • the memory was already mapped with a different mapping.

info and its contents remain valid for as long as mem is valid and until [gst.memory.Memory.unmap] is called.

For each [gst.memory.Memory.map] call, a corresponding [gst.memory.Memory.unmap] call should be done.

Parameters

infopointer for info
flagsmapping flags

Returns

true if the map operation was successful.