of_list_group_desc_stats_entry_t *
of_list_group_desc_stats_entry_new(of_version_t version)
{
    of_list_group_desc_stats_entry_t *obj;
    int bytes;

    bytes = of_object_fixed_len[version][OF_LIST_GROUP_DESC_STATS_ENTRY] + of_object_extra_len[version][OF_LIST_GROUP_DESC_STATS_ENTRY];

    if ((obj = (of_list_group_desc_stats_entry_t *)of_object_new(OF_WIRE_BUFFER_MAX_LENGTH)) == NULL) {
        return NULL;
    }

    of_list_group_desc_stats_entry_init(obj, version, bytes, 0);

    return obj;
}
of_list_group_desc_stats_entry_t *
of_list_group_desc_stats_entry_new(of_version_t version)
{
    of_list_group_desc_stats_entry_t *obj;
    int bytes;

    bytes = of_object_fixed_len[version][OF_LIST_GROUP_DESC_STATS_ENTRY] + of_object_extra_len[version][OF_LIST_GROUP_DESC_STATS_ENTRY];

    /* Allocate a maximum-length wire buffer assuming we'll be appending to it. */
    if ((obj = (of_list_group_desc_stats_entry_t *)of_object_new(OF_WIRE_BUFFER_MAX_LENGTH)) == NULL) {
        return NULL;
    }

    of_list_group_desc_stats_entry_init(obj, version, bytes, 0);

    return obj;
}