Wireshark-commits: [Wireshark-commits] rev 42627: /trunk/epan/ /trunk/epan/: tvbuff.c tvbuff.h
Date: Tue, 15 May 2012 05:42:58 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=42627

User: guy
Date: 2012/05/14 10:42 PM

Log:
 Make the encoding argument uniformly guint rather than gint.
 
 Put the code that's currently common to the ENC_ASCII and ENC_UTF_8
 cases in tvb_get_ephemeral_string_enc() into tvb_get_ephemeral_string(),
 and call tvb_get_ephemeral_string() in those cases.  Skip the
 tvb_ensure_bytes_exist() and ensure_contiguous() calls in the ENC_UTF_16
 and ENC_UCS_2 cases, as they're unnecessary there.
 
 Update the comment for tvb_get_ephemeral_string_enc().
 
 Make tvb_get_ephemeral_stringz_enc() handle the encodings that
 tvb_get_ephemeral_string_enc() does.

Directory: /trunk/epan/
  Changes    Path          Action
  +92 -30    tvbuff.c      Modified
  +3 -3      tvbuff.h      Modified