gvariant: Briefly mention limits
authorColin Walters <walters@verbum.org>
Wed, 12 Oct 2011 19:22:09 +0000 (15:22 -0400)
committerColin Walters <walters@verbum.org>
Wed, 12 Oct 2011 19:23:39 +0000 (15:23 -0400)
glib/gvariant.c

index 2661e0d..85c1dad 100644 (file)
  * indicator could be placed at the beginning of a file, network message
  * or network stream).
  *
+ * A #GVariant's size is limited mainly by any lowever level operating
+ * system constraints, such as the number of bits in #gsize.  For
+ * example, it is reasonable to have a 2GB file mapped into memory
+ * with #GMappedFile, and call g_variant_new_from_data() on it.
+ *
  * For convenience to C programmers, #GVariant features powerful
  * varargs-based value construction and destruction.  This feature is
  * designed to be embedded in other libraries.