## GstAdapter GstAdapter |

## Functions

GstAdapter * | gst_adapter_new ()
void | gst_adapter_clear ()
void | gst_adapter_push ()
gconstpointer | gst_adapter_map ()
void | gst_adapter_unmap ()
void | gst_adapter_copy ()
GBytes * | gst_adapter_copy_bytes ()
void | gst_adapter_flush ()
gsize | gst_adapter_available ()
gsize | gst_adapter_available_fast ()
gpointer | gst_adapter_take ()
GstBuffer * | gst_adapter_take_buffer ()
GstBuffer * | gst_adapter_get_buffer ()
GstBuffer * | gst_adapter_take_buffer_fast ()
GstBuffer * | gst_adapter_get_buffer_fast ()
GList * | gst_adapter_take_list ()
GList * | gst_adapter_get_list ()
GstBufferList * | gst_adapter_take_buffer_list ()
GstBufferList * | gst_adapter_get_buffer_list ()
GstClockTime | gst_adapter_prev_pts ()
GstClockTime | gst_adapter_prev_dts ()
GstClockTime | gst_adapter_prev_pts_at_offset ()
GstClockTime | gst_adapter_prev_dts_at_offset ()
guint64 | gst_adapter_prev_offset ()
GstClockTime | gst_adapter_pts_at_discont ()
GstClockTime | gst_adapter_dts_at_discont ()
guint64 | gst_adapter_offset_at_discont ()
guint64 | gst_adapter_distance_from_discont ()
gssize | gst_adapter_masked_scan_uint32 ()
gssize | gst_adapter_masked_scan_uint32_peek ()

## Types and Values

| GstAdapter

## Object Hierarchy

        GObject
        ╰── GstAdapter

## Includes

    #include <gst/base/gstadapter.h>

## Description

## Functions

### gst_adapter_new ()

    GstAdapter *
    gst_adapter_new (void);

### gst_adapter_clear ()

    void
    gst_adapter_clear (GstAdapter *adapter);

### gst_adapter_push ()

    void
    gst_adapter_push (GstAdapter *adapter,
                      GstBuffer *buf);

### gst_adapter_map ()

    gconstpointer
    gst_adapter_map (GstAdapter *adapter,
                     gsize size);

### gst_adapter_unmap ()

    void
    gst_adapter_unmap (GstAdapter *adapter);

### gst_adapter_copy ()

    void
    gst_adapter_copy (GstAdapter *adapter,
                      gpointer dest,
                      gsize offset,
                      gsize size);

### gst_adapter_copy_bytes ()

    GBytes *
    gst_adapter_copy_bytes (GstAdapter *adapter,
                            gsize offset,
                            gsize size);

### gst_adapter_flush ()

    void
    gst_adapter_flush (GstAdapter *adapter,
                       gsize flush);

### gst_adapter_available ()

    gsize
    gst_adapter_available (GstAdapter *adapter);

### gst_adapter_available_fast ()

    gsize
    gst_adapter_available_fast (GstAdapter *adapter);

### gst_adapter_take ()

    gpointer
    gst_adapter_take (GstAdapter *adapter,
                      gsize nbytes);

### gst_adapter_take_buffer ()

    GstBuffer *
    gst_adapter_take_buffer (GstAdapter *adapter,
                             gsize nbytes);

### gst_adapter_get_buffer ()

    GstBuffer *
    gst_adapter_get_buffer (GstAdapter *adapter,
                            gsize nbytes);

### gst_adapter_take_buffer_fast ()

    GstBuffer *
    gst_adapter_take_buffer_fast (GstAdapter *adapter,
                                  gsize nbytes);

### gst_adapter_get_buffer_fast ()

    GstBuffer *
    gst_adapter_get_buffer_fast (GstAdapter *adapter,
                                 gsize nbytes);

### gst_adapter_take_list ()

    GList *
    gst_adapter_take_list (GstAdapter *adapter,
                           gsize nbytes);

### gst_adapter_get_list ()

    GList *
    gst_adapter_get_list (GstAdapter *adapter,
                          gsize nbytes);

### gst_adapter_take_buffer_list ()

    GstBufferList *
    gst_adapter_take_buffer_list (GstAdapter *adapter,
                                  gsize nbytes);

### gst_adapter_get_buffer_list ()

    GstBufferList *
    gst_adapter_get_buffer_list (GstAdapter *adapter,
                                 gsize nbytes);

### gst_adapter_prev_pts ()

    GstClockTime
    gst_adapter_prev_pts (GstAdapter *adapter,
                          guint64 *distance);

### gst_adapter_prev_dts ()

    GstClockTime
    gst_adapter_prev_dts (GstAdapter *adapter,
                          guint64 *distance);

### gst_adapter_prev_pts_at_offset ()

    GstClockTime
    gst_adapter_prev_pts_at_offset (GstAdapter *adapter,
                                    gsize offset,
                                    guint64 *distance);

### gst_adapter_prev_dts_at_offset ()

    GstClockTime
    gst_adapter_prev_dts_at_offset (GstAdapter *adapter,
                                    gsize offset,
                                    guint64 *distance);

### gst_adapter_prev_offset ()

    guint64
    gst_adapter_prev_offset (GstAdapter *adapter,
                             guint64 *distance);

### gst_adapter_pts_at_discont ()

    GstClockTime
    gst_adapter_pts_at_discont (GstAdapter *adapter);

### gst_adapter_dts_at_discont ()

    GstClockTime
    gst_adapter_dts_at_discont (GstAdapter *adapter);

### gst_adapter_offset_at_discont ()

    guint64
    gst_adapter_offset_at_discont (GstAdapter *adapter);

### gst_adapter_distance_from_discont ()

    guint64
    gst_adapter_distance_from_discont (GstAdapter *adapter);

### gst_adapter_masked_scan_uint32 ()

    gssize
    gst_adapter_masked_scan_uint32 (GstAdapter *adapter,
                                    guint32 mask,
                                    guint32 pattern,
                                    gsize offset,
                                    gsize size);

### gst_adapter_masked_scan_uint32_peek ()

    gssize
    gst_adapter_masked_scan_uint32_peek (GstAdapter *adapter,
                                         guint32 mask,
                                         guint32 pattern,
                                         gsize offset,
                                         gsize size,
                                         guint32 *value);

## Types and Values

### GstAdapter

    typedef struct _GstAdapter GstAdapter;