/* read a array type flag and add it to tree  */
static void read_array_type(unsigned int *offset, tvbuff_t *tvb, proto_tree *etch_tree)
/* read a array type flag and add it to tree  */
static void read_array_type(unsigned int *offset, tvbuff_t *tvb, proto_tree *etch_tree)
{
  guint32 type_code;
  type_code = tvb_get_guint8(tvb, *offset);
  read_type(offset, tvb, etch_tree);
  if (type_code == ETCH_TC_CUSTOM) {
    read_type(offset, tvb, etch_tree);
    proto_tree_add_item(etch_tree, hf_etch_value, tvb, *offset, 4,
                        ENC_BIG_ENDIAN);
    (*offset) += 4;
  }
}