GstByteWriter: GStreamer 1.0 Library Reference Manual

## GstByteWriter GstByteWriter |

## Functions

GstByteWriter * | gst_byte_writer_new ()
GstByteWriter * | gst_byte_writer_new_with_data ()
GstByteWriter * | gst_byte_writer_new_with_size ()
void | gst_byte_writer_init ()
void | gst_byte_writer_init_with_data ()
void | gst_byte_writer_init_with_size ()
void | gst_byte_writer_free ()
GstBuffer * | gst_byte_writer_free_and_get_buffer ()
guint8 * | gst_byte_writer_free_and_get_data ()
void | gst_byte_writer_reset ()
guint8 * | gst_byte_writer_reset_and_get_data ()
GstBuffer * | gst_byte_writer_reset_and_get_buffer ()
guint | gst_byte_writer_get_pos ()
gboolean | gst_byte_writer_set_pos ()
guint | gst_byte_writer_get_remaining ()
guint | gst_byte_writer_get_size ()
gboolean | gst_byte_writer_ensure_free_space ()
gboolean | gst_byte_writer_put_int8 ()
gboolean | gst_byte_writer_put_int16_be ()
gboolean | gst_byte_writer_put_int16_le ()
gboolean | gst_byte_writer_put_int24_be ()
gboolean | gst_byte_writer_put_int24_le ()
gboolean | gst_byte_writer_put_int32_be ()
gboolean | gst_byte_writer_put_int32_le ()
gboolean | gst_byte_writer_put_int64_be ()
gboolean | gst_byte_writer_put_int64_le ()
gboolean | gst_byte_writer_put_uint8 ()
gboolean | gst_byte_writer_put_uint16_be ()
gboolean | gst_byte_writer_put_uint16_le ()
gboolean | gst_byte_writer_put_uint24_be ()
gboolean | gst_byte_writer_put_uint24_le ()
gboolean | gst_byte_writer_put_uint32_be ()
gboolean | gst_byte_writer_put_uint32_le ()
gboolean | gst_byte_writer_put_uint64_be ()
gboolean | gst_byte_writer_put_uint64_le ()
gboolean | gst_byte_writer_put_float32_be ()
gboolean | gst_byte_writer_put_float32_le ()
gboolean | gst_byte_writer_put_float64_be ()
gboolean | gst_byte_writer_put_float64_le ()
#define | gst_byte_writer_put_string()
gboolean | gst_byte_writer_put_string_utf16 ()
gboolean | gst_byte_writer_put_string_utf32 ()
gboolean | gst_byte_writer_put_string_utf8 ()
gboolean | gst_byte_writer_put_data ()
gboolean | gst_byte_writer_fill ()
gboolean | gst_byte_writer_put_buffer ()
void | gst_byte_writer_put_buffer_unchecked ()
void | gst_byte_writer_put_int8_unchecked ()
void | gst_byte_writer_put_int16_be_unchecked ()
void | gst_byte_writer_put_int16_le_unchecked ()
void | gst_byte_writer_put_int24_be_unchecked ()
void | gst_byte_writer_put_int24_le_unchecked ()
void | gst_byte_writer_put_int32_be_unchecked ()
void | gst_byte_writer_put_int32_le_unchecked ()
void | gst_byte_writer_put_int64_be_unchecked ()
void | gst_byte_writer_put_int64_le_unchecked ()
void | gst_byte_writer_put_uint8_unchecked ()
void | gst_byte_writer_put_uint16_be_unchecked ()
void | gst_byte_writer_put_uint16_le_unchecked ()
void | gst_byte_writer_put_uint24_be_unchecked ()
void | gst_byte_writer_put_uint24_le_unchecked ()
void | gst_byte_writer_put_uint32_be_unchecked ()
void | gst_byte_writer_put_uint32_le_unchecked ()
void | gst_byte_writer_put_uint64_be_unchecked ()
void | gst_byte_writer_put_uint64_le_unchecked ()
void | gst_byte_writer_put_float32_be_unchecked ()
void | gst_byte_writer_put_float32_le_unchecked ()
void | gst_byte_writer_put_float64_be_unchecked ()
void | gst_byte_writer_put_float64_le_unchecked ()
void | gst_byte_writer_put_data_unchecked ()
void | gst_byte_writer_fill_unchecked ()

## Types and Values

| GstByteWriter

## Includes

    #include <gst/base/gstbytewriter.h>

## Description

## Functions

### gst_byte_writer_new ()

    GstByteWriter *
    gst_byte_writer_new (void);

### gst_byte_writer_new_with_data ()

    GstByteWriter *
    gst_byte_writer_new_with_data (guint8 *data,
                                   guint size,
                                   gboolean initialized);

### gst_byte_writer_new_with_size ()

    GstByteWriter *
    gst_byte_writer_new_with_size (guint size,
                                   gboolean fixed);

### gst_byte_writer_init ()

    void
    gst_byte_writer_init (GstByteWriter *writer);

### gst_byte_writer_init_with_data ()

    void
    gst_byte_writer_init_with_data (GstByteWriter *writer,
                                    guint8 *data,
                                    guint size,
                                    gboolean initialized);

### gst_byte_writer_init_with_size ()

    void
    gst_byte_writer_init_with_size (GstByteWriter *writer,
                                    guint size,
                                    gboolean fixed);

### gst_byte_writer_free ()

    void
    gst_byte_writer_free (GstByteWriter *writer);

### gst_byte_writer_free_and_get_buffer ()

    GstBuffer *
    gst_byte_writer_free_and_get_buffer (GstByteWriter *writer);

### gst_byte_writer_free_and_get_data ()

    guint8 *
    gst_byte_writer_free_and_get_data (GstByteWriter *writer);

### gst_byte_writer_reset ()

    void
    gst_byte_writer_reset (GstByteWriter *writer);

### gst_byte_writer_reset_and_get_data ()

    guint8 *
    gst_byte_writer_reset_and_get_data (GstByteWriter *writer);

### gst_byte_writer_reset_and_get_buffer ()

    GstBuffer *
    gst_byte_writer_reset_and_get_buffer (GstByteWriter *writer);

### gst_byte_writer_get_pos ()

    guint
    gst_byte_writer_get_pos (const GstByteWriter *writer);

### gst_byte_writer_set_pos ()

    gboolean
    gst_byte_writer_set_pos (GstByteWriter *writer,
                             guint pos);

### gst_byte_writer_get_remaining ()

    guint
    gst_byte_writer_get_remaining (const GstByteWriter *writer);

### gst_byte_writer_get_size ()

    guint
    gst_byte_writer_get_size (const GstByteWriter *writer);

### gst_byte_writer_ensure_free_space ()

    gboolean
    gst_byte_writer_ensure_free_space (GstByteWriter *writer,
                                       guint size);

### gst_byte_writer_put_int8 ()

    gboolean
    gst_byte_writer_put_int8 (GstByteWriter *writer,
                              gint8 val);

### gst_byte_writer_put_int16_be ()

    gboolean
    gst_byte_writer_put_int16_be (GstByteWriter *writer,
                                  gint16 val);

### gst_byte_writer_put_int16_le ()

    gboolean
    gst_byte_writer_put_int16_le (GstByteWriter *writer,
                                  gint16 val);

### gst_byte_writer_put_int24_be ()

    gboolean
    gst_byte_writer_put_int24_be (GstByteWriter *writer,
                                  gint32 val);

### gst_byte_writer_put_int24_le ()

    gboolean
    gst_byte_writer_put_int24_le (GstByteWriter *writer,
                                  gint32 val);

### gst_byte_writer_put_int32_be ()

    gboolean
    gst_byte_writer_put_int32_be (GstByteWriter *writer,
                                  gint32 val);

### gst_byte_writer_put_int32_le ()

    gboolean
    gst_byte_writer_put_int32_le (GstByteWriter *writer,
                                  gint32 val);

### gst_byte_writer_put_int64_be ()

    gboolean
    gst_byte_writer_put_int64_be (GstByteWriter *writer,
                                  gint64 val);

### gst_byte_writer_put_int64_le ()

    gboolean
    gst_byte_writer_put_int64_le (GstByteWriter *writer,
                                  gint64 val);

### gst_byte_writer_put_uint8 ()

    gboolean
    gst_byte_writer_put_uint8 (GstByteWriter *writer,
                               guint8 val);

### gst_byte_writer_put_uint16_be ()

    gboolean
    gst_byte_writer_put_uint16_be (GstByteWriter *writer,
                                   guint16 val);

### gst_byte_writer_put_uint16_le ()

    gboolean
    gst_byte_writer_put_uint16_le (GstByteWriter *writer,
                                   guint16 val);

### gst_byte_writer_put_uint24_be ()

    gboolean
    gst_byte_writer_put_uint24_be (GstByteWriter *writer,
                                   guint32 val);

### gst_byte_writer_put_uint24_le ()

    gboolean
    gst_byte_writer_put_uint24_le (GstByteWriter *writer,
                                   guint32 val);

### gst_byte_writer_put_uint32_be ()

    gboolean
    gst_byte_writer_put_uint32_be (GstByteWriter *writer,
                                   guint32 val);

### gst_byte_writer_put_uint32_le ()

    gboolean
    gst_byte_writer_put_uint32_le (GstByteWriter *writer,
                                   guint32 val);

### gst_byte_writer_put_uint64_be ()

    gboolean
    gst_byte_writer_put_uint64_be (GstByteWriter *writer,
                                   guint64 val);

### gst_byte_writer_put_uint64_le ()

    gboolean
    gst_byte_writer_put_uint64_le (GstByteWriter *writer,
                                   guint64 val);

### gst_byte_writer_put_float32_be ()

    gboolean
    gst_byte_writer_put_float32_be (GstByteWriter *writer,
                                    gfloat val);

### gst_byte_writer_put_float32_le ()

    gboolean
    gst_byte_writer_put_float32_le (GstByteWriter *writer,
                                    gfloat val);

### gst_byte_writer_put_float64_be ()

    gboolean
    gst_byte_writer_put_float64_be (GstByteWriter *writer,
                                    gdouble val);

### gst_byte_writer_put_float64_le ()

    gboolean
    gst_byte_writer_put_float64_le (GstByteWriter *writer,
                                    gdouble val);

### gst_byte_writer_put_string()

    #define             gst_byte_writer_put_string(writer, data)

### gst_byte_writer_put_string_utf16 ()

    gboolean
    gst_byte_writer_put_string_utf16 (GstByteWriter *writer,
                                      const guint16 *data);

### gst_byte_writer_put_string_utf32 ()

    gboolean
    gst_byte_writer_put_string_utf32 (GstByteWriter *writer,
                                      const guint32 *data);

### gst_byte_writer_put_string_utf8 ()

    gboolean
    gst_byte_writer_put_string_utf8 (GstByteWriter *writer,
                                     const gchar *data);

### gst_byte_writer_put_data ()

    gboolean
    gst_byte_writer_put_data (GstByteWriter *writer,
                              const guint8 *data,
                              guint size);

### gst_byte_writer_fill ()

    gboolean
    gst_byte_writer_fill (GstByteWriter *writer,
                          guint8 value,
                          guint size);

### gst_byte_writer_put_buffer ()

    gboolean
    gst_byte_writer_put_buffer (GstByteWriter *writer,
                                GstBuffer *buffer,
                                gsize offset,
                                gssize size);

### gst_byte_writer_put_buffer_unchecked ()

    void
    gst_byte_writer_put_buffer_unchecked (GstByteWriter *writer,
                                          GstBuffer *buffer,
                                          gsize offset,
                                          gssize size);

### gst_byte_writer_put_int8_unchecked ()

    void
    gst_byte_writer_put_int8_unchecked (GstByteWriter *writer,
                                        gint8 val);

### gst_byte_writer_put_int16_be_unchecked ()

    void
    gst_byte_writer_put_int16_be_unchecked
                                   (GstByteWriter *writer,
                                    gint16 val);

### gst_byte_writer_put_int16_le_unchecked ()

    void
    gst_byte_writer_put_int16_le_unchecked
                                   (GstByteWriter *writer,
                                    gint16 val);

### gst_byte_writer_put_int24_be_unchecked ()

    void
    gst_byte_writer_put_int24_be_unchecked
                                   (GstByteWriter *writer,
                                    gint32 val);

### gst_byte_writer_put_int24_le_unchecked ()

    void
    gst_byte_writer_put_int24_le_unchecked
                                   (GstByteWriter *writer,
                                    gint32 val);

### gst_byte_writer_put_int32_be_unchecked ()

    void
    gst_byte_writer_put_int32_be_unchecked
                                   (GstByteWriter *writer,
                                    gint32 val);

### gst_byte_writer_put_int32_le_unchecked ()

    void
    gst_byte_writer_put_int32_le_unchecked
                                   (GstByteWriter *writer,
                                    gint32 val);

### gst_byte_writer_put_int64_be_unchecked ()

    void
    gst_byte_writer_put_int64_be_unchecked
                                   (GstByteWriter *writer,
                                    gint64 val);

### gst_byte_writer_put_int64_le_unchecked ()

    void
    gst_byte_writer_put_int64_le_unchecked
                                   (GstByteWriter *writer,
                                    gint64 val);

### gst_byte_writer_put_uint8_unchecked ()

    void
    gst_byte_writer_put_uint8_unchecked (GstByteWriter *writer,
                                         guint8 val);

### gst_byte_writer_put_uint16_be_unchecked ()

    void
    gst_byte_writer_put_uint16_be_unchecked
                                   (GstByteWriter *writer,
                                    guint16 val);

### gst_byte_writer_put_uint16_le_unchecked ()

    void
    gst_byte_writer_put_uint16_le_unchecked
                                   (GstByteWriter *writer,
                                    guint16 val);

### gst_byte_writer_put_uint24_be_unchecked ()

    void
    gst_byte_writer_put_uint24_be_unchecked
                                   (GstByteWriter *writer,
                                    guint32 val);

### gst_byte_writer_put_uint24_le_unchecked ()

    void
    gst_byte_writer_put_uint24_le_unchecked
                                   (GstByteWriter *writer,
                                    guint32 val);

### gst_byte_writer_put_uint32_be_unchecked ()

    void
    gst_byte_writer_put_uint32_be_unchecked
                                   (GstByteWriter *writer,
                                    guint32 val);

### gst_byte_writer_put_uint32_le_unchecked ()

    void
    gst_byte_writer_put_uint32_le_unchecked
                                   (GstByteWriter *writer,
                                    guint32 val);

### gst_byte_writer_put_uint64_be_unchecked ()

    void
    gst_byte_writer_put_uint64_be_unchecked
                                   (GstByteWriter *writer,
                                    guint64 val);

### gst_byte_writer_put_uint64_le_unchecked ()

    void
    gst_byte_writer_put_uint64_le_unchecked
                                   (GstByteWriter *writer,
                                    guint64 val);

### gst_byte_writer_put_float32_be_unchecked ()

    void
    gst_byte_writer_put_float32_be_unchecked
                                   (GstByteWriter *writer,
                                    gfloat val);

### gst_byte_writer_put_float32_le_unchecked ()

    void
    gst_byte_writer_put_float32_le_unchecked
                                   (GstByteWriter *writer,
                                    gfloat val);

### gst_byte_writer_put_float64_be_unchecked ()

    void
    gst_byte_writer_put_float64_be_unchecked
                                   (GstByteWriter *writer,
                                    gdouble val);

### gst_byte_writer_put_float64_le_unchecked ()

    void
    gst_byte_writer_put_float64_le_unchecked
                                   (GstByteWriter *writer,
                                    gdouble val);

### gst_byte_writer_put_data_unchecked ()

    void
    gst_byte_writer_put_data_unchecked (GstByteWriter *writer,
                                        const guint8 *data,
                                        guint size);

### gst_byte_writer_fill_unchecked ()

    void
    gst_byte_writer_fill_unchecked (GstByteWriter *writer,
                                    guint8 value,
                                    guint size);

## Types and Values

### GstByteWriter

    typedef struct {
      GstByteReader parent;

      guint alloc_size;

      gboolean fixed;
      gboolean owned;
    } GstByteWriter;