Struct gstreamer::buffer::Buffer [−][src]
pub struct Buffer { /* fields omitted */ }
Implementations
Fills info
with the GstMapInfo
of all merged memory blocks in self
.
flags
describe the desired access of the memory. When flags
is
GST_MAP_WRITE
, self
should be writable (as returned from
gst_buffer_is_writable()
).
When self
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_buffer_unmap()
after
usage.
flags
flags for the mapping
Returns
true
if the map succeeded and info
contains valid data.
info
info about the mapping
pub fn into_cursor_readable(self) -> BufferCursor<Readable>ⓘNotable traits for BufferCursor<Readable>
impl Read for BufferCursor<Readable>impl Write for BufferCursor<Writable>
[src]Methods from Deref<Target = BufferRef>
pub fn copy_region(
&self,
flags: BufferCopyFlags,
offset: usize,
size: Option<usize>
) -> Result<Buffer, BoolError>
[src]pub fn copy_into(
&self,
dest: &mut BufferRef,
flags: BufferCopyFlags,
offset: usize,
size: Option<usize>
) -> Result<(), BoolError>
[src]pub fn as_cursor_readable(&self) -> BufferRefCursor<&BufferRef>ⓘNotable traits for BufferRefCursor<&'a BufferRef>
impl<'a> Read for BufferRefCursor<&'a BufferRef>impl<'a> Write for BufferRefCursor<&'a mut BufferRef>
[src]Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Safety Read more
Safety Read more
Safety Read more
Safety Read more
type Checker = GenericValueTypeOrNoneChecker<Self>
type Checker = GenericValueTypeOrNoneChecker<Self>
Value type checker.
Get the contained value from a Value
. Read more
Returns the type identifier of Self
.
Convert an Option
to a Value
.
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue
clone of self
.
impl<'a, T, C> FromValueOptional<'a> for T where
C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError>,
T: FromValue<'a, Checker = C>,
[src]