Gst.Buffer.prototype.map
function map(flags:Gst.MapFlags):Boolean { // Gjs wrapper for gst_buffer_map() }
This function fills info with the Gst.MapInfo of all merged memory blocks in buffer.
flags describe the desired access of the memory. When flags is #GST_MAP_WRITE, buffer should be writable (as returned from gst_buffer_is_writable()).
When buffer is writable but the memory isn't, a writable copy will automatically be created and returned. The readonly copy of the buffer memory will then also be replaced with this writable copy.
The memory in info should be unmapped with Gst.unmap after usage.
- flags
flags for the mapping
- Returns
true if the map succeeded and info contains valid data.