[vala] glib-2.0: Add string.data property



commit 1a519bc19185e1cd6603b62e96a556456de59f9f
Author: Evan Nemerson <evan coeus-group com>
Date:   Wed Aug 4 12:05:53 2010 -0700

    glib-2.0: Add string.data property

 vapi/glib-2.0.vapi |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 0ab76d6..3099817 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -1166,6 +1166,14 @@ public class string {
 		get { return this.len (); }
 	}
 
+	public uint8[] data {
+		get {
+			unowned uint8[] res = (uint8[]) this;
+			res.length = (int) this.size ();
+			return res;
+		}
+	}
+
 	public char[] to_utf8 () {
 		char[] result = new char[this.size () + 1];
 		result.length--;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]