AWS Encryption SDK for C v2.4
Loading...
Searching...
No Matches
list_utils.h File Reference
#include <aws/common/array_list.h>
#include <aws/cryptosdk/exports.h>
+ Include dependency graph for list_utils.h:

Go to the source code of this file.

Functions

int aws_cryptosdk_transfer_list (struct aws_array_list *dest, struct aws_array_list *src)
 
int aws_cryptosdk_edk_list_copy_all (struct aws_allocator *alloc, struct aws_array_list *dest, const struct aws_array_list *src)
 
int aws_cryptosdk_keyring_trace_copy_all (struct aws_allocator *alloc, struct aws_array_list *dest, const struct aws_array_list *src)
 

Function Documentation

◆ aws_cryptosdk_edk_list_copy_all()

int aws_cryptosdk_edk_list_copy_all ( struct aws_allocator * alloc,
struct aws_array_list * dest,
const struct aws_array_list * src )

Copies all EDKs in the list at src, appending the copies to dest. dest must already be initialized.

On failure, the destination list is unchanged.

◆ aws_cryptosdk_keyring_trace_copy_all()

int aws_cryptosdk_keyring_trace_copy_all ( struct aws_allocator * alloc,
struct aws_array_list * dest,
const struct aws_array_list * src )

Copies all aws_cryptosdk_keyring_trace_records in the list at src, appending the copies to dest. dest must already be initialized.

On failure, the destination list is unchanged.

◆ aws_cryptosdk_transfer_list()

int aws_cryptosdk_transfer_list ( struct aws_array_list * dest,
struct aws_array_list * src )

Appends the contents of source list to destination list, and clears source list but does not clean it up. This makes shallow copies of all pointers in the source list, so for example byte buffers and strings are not duplicated. Their ownership is just transferred from the source list to the destination.