1#ifndef AWS_COMMON_PRIVATE_ARRAY_LIST_H
2#define AWS_COMMON_PRIVATE_ARRAY_LIST_H
3
4/*
5 * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License").
8 * You may not use this file except in compliance with the License.
9 * A copy of the License is located at
10 *
11 * http://aws.amazon.com/apache2.0
12 *
13 * or in the "license" file accompanying this file. This file is distributed
14 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
15 * express or implied. See the License for the specific language governing
16 * permissions and limitations under the License.
17 */
18
19AWS_EXTERN_C_BEGIN
20
21/**
22 * Helper function that calculates the number of bytes needed by an array_list, where "index" is the last valid
23 * index.
24 */
25int aws_array_list_calc_necessary_size(struct aws_array_list *AWS_RESTRICT list, size_t index, size_t *necessary_size);
26
27AWS_EXTERN_C_END
28
29#endif /* AWS_COMMON_PRIVATE_ARRAY_LIST_H */
30