Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
f8338d4f
Commit
f8338d4f
authored
Dec 07, 2021
by
Max Kellermann
Committed by
Max Kellermann
Jul 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib/curl/Request: use std::size_t
parent
5cf6032c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
Request.cxx
src/lib/curl/Request.cxx
+6
-6
Request.hxx
src/lib/curl/Request.hxx
+5
-5
No files found.
src/lib/curl/Request.cxx
View file @
f8338d4f
...
...
@@ -224,8 +224,8 @@ CurlRequest::HeaderFunction(StringView s) noexcept
headers
.
emplace
(
std
::
move
(
name
),
std
::
string
(
value
,
end
));
}
size_t
CurlRequest
::
_HeaderFunction
(
char
*
ptr
,
s
ize_t
size
,
size_t
nmemb
,
s
td
::
s
ize_t
CurlRequest
::
_HeaderFunction
(
char
*
ptr
,
s
td
::
size_t
size
,
std
::
size_t
nmemb
,
void
*
stream
)
noexcept
{
CurlRequest
&
c
=
*
(
CurlRequest
*
)
stream
;
...
...
@@ -236,8 +236,8 @@ CurlRequest::_HeaderFunction(char *ptr, size_t size, size_t nmemb,
return
size
;
}
inline
size_t
CurlRequest
::
DataReceived
(
const
void
*
ptr
,
size_t
received_size
)
noexcept
inline
s
td
::
s
ize_t
CurlRequest
::
DataReceived
(
const
void
*
ptr
,
s
td
::
s
ize_t
received_size
)
noexcept
{
assert
(
received_size
>
0
);
...
...
@@ -251,8 +251,8 @@ CurlRequest::DataReceived(const void *ptr, size_t received_size) noexcept
}
size_t
CurlRequest
::
WriteFunction
(
char
*
ptr
,
s
ize_t
size
,
size_t
nmemb
,
s
td
::
s
ize_t
CurlRequest
::
WriteFunction
(
char
*
ptr
,
s
td
::
size_t
size
,
std
::
size_t
nmemb
,
void
*
stream
)
noexcept
{
CurlRequest
&
c
=
*
(
CurlRequest
*
)
stream
;
...
...
src/lib/curl/Request.hxx
View file @
f8338d4f
...
...
@@ -165,17 +165,17 @@ private:
void
FinishHeaders
();
void
FinishBody
();
s
ize_t
DataReceived
(
const
void
*
ptr
,
size_t
size
)
noexcept
;
s
td
::
size_t
DataReceived
(
const
void
*
ptr
,
std
::
size_t
size
)
noexcept
;
void
HeaderFunction
(
StringView
s
)
noexcept
;
/** called by curl when new data is available */
static
s
ize_t
_HeaderFunction
(
char
*
ptr
,
size_t
size
,
size_t
nmemb
,
void
*
stream
)
noexcept
;
static
s
td
::
size_t
_HeaderFunction
(
char
*
ptr
,
std
::
size_t
size
,
std
::
size_t
nmemb
,
void
*
stream
)
noexcept
;
/** called by curl when new data is available */
static
s
ize_t
WriteFunction
(
char
*
ptr
,
size_t
size
,
size_t
nmemb
,
void
*
stream
)
noexcept
;
static
s
td
::
size_t
WriteFunction
(
char
*
ptr
,
std
::
size_t
size
,
std
::
size_t
nmemb
,
void
*
stream
)
noexcept
;
};
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment