Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix issue with Microsoft's checked iterators#852

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -51,7 +51,8 @@ struct chunk_encoding_parser {
size_t chunk_size;
buffer_type buffer;

void update_chunk_size(char_const_range const &range) {
template<typename T>
void update_chunk_size(boost::iterator_range<T> const &range) {
if (range.empty()) return;
std::stringstream ss;
ss << std::hex << range;
Expand All@@ -61,7 +62,8 @@ struct chunk_encoding_parser {
chunk_size = (chunk_size << (range.size() * 4)) | size;
}

char_const_range operator()(char_const_range const &range) {
template<typename T>
char_const_range operator()(boost::iterator_range<T> const &range) {
auto iter = boost::begin(range);
auto begin = iter;
auto pos = boost::begin(buffer);
Expand DownExpand Up@@ -485,10 +487,8 @@ struct http_async_connection
const auto parse_buffer_size = parse_chunk_encoding.buffer.size();
for (size_t i = 0; i < this->partial_parsed.size(); i += parse_buffer_size) {
auto range = parse_chunk_encoding(boost::make_iterator_range(
static_cast<
typename chunk_encoding_parser_type::const_iterator>(this->partial_parsed.data()) + i,
static_cast<
typename chunk_encoding_parser_type::const_iterator>(this->partial_parsed.data()) +
this->partial_parsed.cbegin() + i,
this->partial_parsed.cbegin() +
std::min(i + parse_buffer_size, this->partial_parsed.size())));
body_string.append(boost::begin(range), boost::end(range));
}
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp