OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 // Generic unstable sorting routines. | 11 // Generic unstable sorting routines. |
12 | 12 |
13 #ifndef WEBRTC_SYSTEM_WRAPPERS_INTERFACE_SORT_H_ | 13 #ifndef WEBRTC_SYSTEM_WRAPPERS_INCLUDE_SORT_H_ |
14 #define WEBRTC_SYSTEM_WRAPPERS_INTERFACE_SORT_H_ | 14 #define WEBRTC_SYSTEM_WRAPPERS_INCLUDE_SORT_H_ |
15 | 15 |
16 #include "webrtc/common_types.h" | 16 #include "webrtc/common_types.h" |
17 #include "webrtc/typedefs.h" | 17 #include "webrtc/typedefs.h" |
18 | 18 |
19 namespace webrtc { | 19 namespace webrtc { |
20 | 20 |
21 enum Type { | 21 enum Type { |
22 TYPE_Word8, | 22 TYPE_Word8, |
23 TYPE_UWord8, | 23 TYPE_UWord8, |
24 TYPE_Word16, | 24 TYPE_Word16, |
(...skipping 30 matching lines...) Expand all Loading... |
55 // size_of_element The size, in bytes, of the data array. | 55 // size_of_element The size, in bytes, of the data array. |
56 // key_type Enum corresponding to the type of the key array. | 56 // key_type Enum corresponding to the type of the key array. |
57 // | 57 // |
58 // returns 0 on success, -1 on failure. | 58 // returns 0 on success, -1 on failure. |
59 // | 59 // |
60 int32_t KeySort(void* data, void* key, uint32_t num_of_elements, | 60 int32_t KeySort(void* data, void* key, uint32_t num_of_elements, |
61 uint32_t size_of_element, Type key_type); | 61 uint32_t size_of_element, Type key_type); |
62 | 62 |
63 } // namespace webrtc | 63 } // namespace webrtc |
64 | 64 |
65 #endif // WEBRTC_SYSTEM_WRAPPERS_INTERFACE_SORT_H_ | 65 #endif // WEBRTC_SYSTEM_WRAPPERS_INCLUDE_SORT_H_ |
OLD | NEW |