Skip to content

Commit 9bd6ecb

Browse files
committed
the impl of the hashing support funcs
1 parent 0d40171 commit 9bd6ecb

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

source/client_impl_shared.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,14 @@ bool aws_mqtt_compare_uint16_t_eq(const void *a, const void *b) {
217217
return *(uint16_t *)a == *(uint16_t *)b;
218218
}
219219

220+
uint64_t aws_mqtt_hash_uint32_t(const void *item) {
221+
return *(uint32_t *)item;
222+
}
223+
224+
bool aws_mqtt_compare_uint32_t_eq(const void *a, const void *b) {
225+
return *(uint32_t *)a == *(uint32_t *)b;
226+
}
227+
220228
bool aws_mqtt_byte_cursor_hash_equality(const void *a, const void *b) {
221229
const struct aws_byte_cursor *a_cursor = a;
222230
const struct aws_byte_cursor *b_cursor = b;

0 commit comments

Comments
 (0)