class Gst::Buffer
Public Instance Methods
Source
# File lib/gst/buffer.rb, line 20 def map(flags) success, info = map_raw(flags) raise Gst::CoreError::Failed.new("failed to map buffer") unless success return info unless block_given? begin yield info ensure unmap(info) end end
Also aliased as: map_raw
Source
# File lib/gst/buffer.rb, line 33 def map_range(idx, length, flags) success, info = map_range_raw(idx, length, flags) raise Gst::CoreError::Failed.new("failed to map buffer") unless success return info unless block_given? begin yield info ensure unmap(info) end end
Also aliased as: map_range_raw