This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

WSGD. How to hide array?

0
1

Have an array of 300 values in packet. This is shown as 300 lines.
I would like to print them in line if it is possible. It will be cool to have opportunity to hide an array like any struct (tree structure). Looking for this feature on the site and in example .fdesc did not give results.
Is it possible? How to do?

asked 18 Jan '16, 07:42

kyb's gravatar image

kyb
16357
accept rate: 100%


One Answer:

0

Define an additional struct:

struct T_my_array
{
  float32[300]  data;
}

And use it in main struct:

struct T_msg_main
{
  T_msg_header_type  Header;
  ...
  T_my_array  my_array;
}

Or even:

struct T_msg_main
{
  T_msg_header_type  Header;
  ...
  struct T_my_array { float32[300]  data; };
}

answered 18 Jan '16, 08:13

kyb's gravatar image

kyb
16357
accept rate: 100%

edited 18 Jan '16, 08:23