DS3 C SDK  5.0.0
Provides access to the Spectra S3 API with C
Macros | Functions
ds3_response_header_utils.c File Reference
#include "ds3_response_header_utils.h"
#include "ds3_string_multimap_impl.h"
#include "ds3_utils.h"

Go to the source code of this file.

Macros

#define BLOB_CHECKSUM_HEADER   "ds3-blob-checksum-offset-"
 
#define BLOB_CHECKSUM_TYPE_HEADER   "ds3-blob-checksum-type"
 

Functions

static ds3_checksum_type_convert_str_to_checksum_type (const ds3_log *log, const ds3_str *checksum_str)
 
ds3_checksum_typeget_blob_checksum_type (const ds3_log *log, ds3_string_multimap *response_headers)
 
static uint64_t * _get_offset_from_key (const ds3_str *key)
 
ds3_uint64_string_mapget_blob_checksums (const ds3_log *log, ds3_string_multimap *response_headers)
 

Macro Definition Documentation

◆ BLOB_CHECKSUM_HEADER

#define BLOB_CHECKSUM_HEADER   "ds3-blob-checksum-offset-"

Definition at line 20 of file ds3_response_header_utils.c.

◆ BLOB_CHECKSUM_TYPE_HEADER

#define BLOB_CHECKSUM_TYPE_HEADER   "ds3-blob-checksum-type"

Definition at line 21 of file ds3_response_header_utils.c.

Function Documentation

◆ _convert_str_to_checksum_type()

static ds3_checksum_type* _convert_str_to_checksum_type ( const ds3_log log,
const ds3_str checksum_str 
)
static

Definition at line 25 of file ds3_response_header_utils.c.

◆ _get_offset_from_key()

static uint64_t* _get_offset_from_key ( const ds3_str key)
static

Definition at line 79 of file ds3_response_header_utils.c.

◆ get_blob_checksum_type()

ds3_checksum_type* get_blob_checksum_type ( const ds3_log log,
ds3_string_multimap response_headers 
)

Definition at line 56 of file ds3_response_header_utils.c.

◆ get_blob_checksums()

ds3_uint64_string_map* get_blob_checksums ( const ds3_log log,
ds3_string_multimap response_headers 
)

Definition at line 90 of file ds3_response_header_utils.c.