Update a comment to reflect current reality.
authorGuy Harris <guy@alum.mit.edu>
Tue, 3 Jul 2018 05:36:28 +0000 (22:36 -0700)
committerGuy Harris <guy@alum.mit.edu>
Tue, 3 Jul 2018 05:37:06 +0000 (05:37 +0000)
Change-Id: I7abf0173e3febf0f34f5942ffe8ff26780d15752
Reviewed-on: https://code.wireshark.org/review/28575
Reviewed-by: Guy Harris <guy@alum.mit.edu>
wsutil/pint.h

index 1517b348913364f053aa4335c51c5a85413b9321..5ecbb3a2e141824bc94ebcc104ce4528fd132967 100644 (file)
 
 #include <glib.h>
 
-/* Pointer versions of g_ntohs and g_ntohl.  Given a pointer to a member of a
- * byte array, returns the value of the two or four bytes at the pointer.
- * The pletohXX versions return the little-endian representation.
+/* Routines that take a possibly-unaligned pointer to a 16-bit, 24-bit,
+ * 32-bit, 40-bit, ... 64-bit integral quantity, in a particular byte
+ * order, and fetch the value and return it in host byte order.
+ *
+ * The pntohN() routines fetch big-endian values; the pletohN() routines
+ * fetch little-endian values.
  */
 
 static inline guint16 pntoh16(const void *p)