GNOME Bugzilla – Bug 669313
.data for StringBuilder
Last modified: 2012-02-05 00:35:32 UTC
'StringBuilder' should have a .data field just like 'string'. 'builder.str.data' works, but it does an extra strlen() and produces incorrect results if the GString contains nuls. We have the .len field, so we could do a better job of this.
Created attachment 206686 [details] [review] glib: add .data to StringBuilder To do the same thing as string.data, but without the strlen() (since we already know this from the GString's length field).
Review of attachment 206686 [details] [review]: Good idea.
Attachment 206686 [details] pushed as cd1dc09 - glib: add .data to StringBuilder