Wireshark-commits: [Wireshark-commits] rev 43263: /trunk/epan/ /trunk/epan/: tvbuff.c

Date: Thu, 14 Jun 2012 19:08:19 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=43263

User: darkjames
Date: 2012/06/14 12:08 PM

Log:
 Optimize tvb_*_unicode functions.
 
 - Allocate tmpbuf on stack. g_unichar_to_utf8[1] requires maximum 6B + 1 byte for NUL, align it to 8B.
 - Use g_string_append_unichar()
 
 [1] http://developer.gnome.org/glib/2.26/glib-Unicode-Manipulation.html#g-unichar-to-utf8

Directory: /trunk/epan/
  Changes    Path          Action
  +5 -40     tvbuff.c      Modified