map


Description:

public bool map (out MapInfo info, MapFlags flags)

Fills info with the MapInfo of all merged memory blocks in this.

flags describe the desired access of the memory. When flags is WRITE, this should be writable (as returned from gst_buffer_is_writable).

When this 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 unmap after usage.

Parameters:

this

a Buffer.

info

info about the mapping

flags

flags for the mapping

Returns:

true if the map succeeded and info contains valid data.