bitwriter: Add missing annotations
authorCorentin Noël <corentin.noel@collabora.com>
Fri, 26 Nov 2021 09:12:32 +0000 (10:12 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 30 Nov 2021 02:28:15 +0000 (02:28 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1392>

subprojects/gstreamer/libs/gst/base/gstbitwriter.c

index 7086c3c..c482040 100644 (file)
@@ -80,7 +80,7 @@ gst_bit_writer_new_with_size (guint size, gboolean fixed)
 
 /**
  * gst_bit_writer_new_with_data: (skip)
- * @data: Memory area for writing
+ * @data: (array length=size) (transfer none): Memory area for writing
  * @size: Size of @data in bytes
  * @initialized: if %TRUE the complete data can be read from the beginning
  *
@@ -333,7 +333,7 @@ gst_bit_writer_get_size (const GstBitWriter * bitwriter)
  *
  * Get written data pointer
  *
- * Returns: data pointer
+ * Returns: (array) (transfer none): data pointer
  */
 guint8 *
 gst_bit_writer_get_data (const GstBitWriter * bitwriter)
@@ -418,7 +418,7 @@ GST_BIT_WRITER_WRITE_BITS (64)
 /**
  * gst_bit_writer_put_bytes:
  * @bitwriter: a #GstBitWriter instance
- * @data: pointer of data to write
+ * @data: (array): pointer of data to write
  * @nbytes: number of bytes to write
  *
  * Write @nbytes bytes of @data to #GstBitWriter.