Gst.Memory.prototype.map
function map(flags:Gst.MapFlags):Boolean { // Gjs wrapper for gst_memory_map() }
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.unmap is called.
For each Gst.Memory.prototype.map call, a corresponding Gst.unmap call should be done.
- flags
mapping flags
- Returns
true if the map operation was successful.