Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
HttpRangeUtils.cpp File Reference
#include <algorithm>
#include "HttpRangeUtils.h"
#include "Util.h"
#include "utils/StringUtils.h"
#include "utils/Variant.h"
#include <inttypes.h>

Macros

#define HEADER_NEWLINE   "\r\n"
 
#define HEADER_SEPARATOR   HEADER_NEWLINE HEADER_NEWLINE
 
#define HEADER_BOUNDARY   "--"
 
#define HEADER_CONTENT_RANGE_VALUE   "{}"
 
#define HEADER_CONTENT_RANGE_VALUE_UNKNOWN   "*"
 
#define HEADER_CONTENT_RANGE_FORMAT_BYTES   "bytes " HEADER_CONTENT_RANGE_VALUE "-" HEADER_CONTENT_RANGE_VALUE "/"
 
#define CONTENT_RANGE_FORMAT_TOTAL   HEADER_CONTENT_RANGE_FORMAT_BYTES HEADER_CONTENT_RANGE_VALUE
 
#define CONTENT_RANGE_FORMAT_TOTAL_UNKNOWN   HEADER_CONTENT_RANGE_FORMAT_BYTES HEADER_CONTENT_RANGE_VALUE_UNKNOWN
 

Macro Definition Documentation

◆ CONTENT_RANGE_FORMAT_TOTAL

#define CONTENT_RANGE_FORMAT_TOTAL   HEADER_CONTENT_RANGE_FORMAT_BYTES HEADER_CONTENT_RANGE_VALUE

◆ CONTENT_RANGE_FORMAT_TOTAL_UNKNOWN

#define CONTENT_RANGE_FORMAT_TOTAL_UNKNOWN   HEADER_CONTENT_RANGE_FORMAT_BYTES HEADER_CONTENT_RANGE_VALUE_UNKNOWN

◆ HEADER_BOUNDARY

#define HEADER_BOUNDARY   "--"

◆ HEADER_CONTENT_RANGE_FORMAT_BYTES

#define HEADER_CONTENT_RANGE_FORMAT_BYTES   "bytes " HEADER_CONTENT_RANGE_VALUE "-" HEADER_CONTENT_RANGE_VALUE "/"

◆ HEADER_CONTENT_RANGE_VALUE

#define HEADER_CONTENT_RANGE_VALUE   "{}"

◆ HEADER_CONTENT_RANGE_VALUE_UNKNOWN

#define HEADER_CONTENT_RANGE_VALUE_UNKNOWN   "*"

◆ HEADER_NEWLINE

#define HEADER_NEWLINE   "\r\n"

◆ HEADER_SEPARATOR

#define HEADER_SEPARATOR   HEADER_NEWLINE HEADER_NEWLINE