[glib] gvariant: Briefly mention limits
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gvariant: Briefly mention limits
- Date: Wed, 12 Oct 2011 19:24:03 +0000 (UTC)
commit 15b9f64004e7377dabad7b9a03dae094df51a0e4
Author: Colin Walters <walters verbum org>
Date: Wed Oct 12 15:22:09 2011 -0400
gvariant: Briefly mention limits
glib/gvariant.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/glib/gvariant.c b/glib/gvariant.c
index 2661e0d..85c1dad 100644
--- a/glib/gvariant.c
+++ b/glib/gvariant.c
@@ -80,6 +80,11 @@
* 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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]