From f8ce3da390b34cb7a6ec92587823f6efc013b888 Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Fri, 1 Apr 2011 20:48:56 +0000 Subject: Add some info as to the determination of the length of a FT_STRINGZ item. Add a note not leaving trailing whitespace on a line. svn path=/trunk/; revision=36434 --- doc/README.developer | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc') diff --git a/doc/README.developer b/doc/README.developer index 1c44509c8d..41f7db9bb5 100644 --- a/doc/README.developer +++ b/doc/README.developer @@ -703,6 +703,8 @@ indentation logic at the beginning of this new file, especially if you're using non-mod-8 tabs. The tabs-vs-spaces document above provides examples of Emacs and vi modelines for this purpose. +Please do not leave trailing whitespace (spaces/tabs) on lines. + When editing an existing file, try following the existing indentation logic and even if it very tempting, never ever use a restyler/reindenter utility on an existing file. If you run across wildly varying @@ -1750,6 +1752,11 @@ The type of value this field holds. The current field types are: types, are to be used for text strings, not raw binary data. FT_STRINGZ A NUL-terminated string of characters. + The string length is normally the length + given in the proto_tree_add_item() call. + However if the length given in the call + is -1, then the length used is that + returned by calling tvb_strsize(). FT_EBCDIC A string of characters, not necessarily NUL-terminated, but possibly NUL-padded. The data from the packet is converted from -- cgit v1.2.3