what's diff -u GString GByteArray for gtk2?
- From: Kang Jeong-Hee <Keizi mail co kr>
- To: gtk-list gnome org
- Subject: what's diff -u GString GByteArray for gtk2?
- Date: Sat, 1 Mar 2003 01:36:45 +0900
Hi.
inspecting cvs/gnome-vfs/http-method.c, I did face two diff types of storage;
GString and GByteArray.
http-method.c seems to use each for different purpose.
but I cannot understand what they're different to each other.
binary data of like \0 couldn't be that diff;
GString now supports embedded nuls ('\0'), so can be used with binary data.
from http://developer.gnome.org/dotplan/porting/ar01s19.html
both struct aer similar.
GString:
struct _GString
{
gchar *str;
gsize len;
gsize allocated_len;
};
and
GByteArray:
struct _GByteArray
{
guint8 *data;
guint len;
};
someone distinguise them?
thx
kz
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]