Merge pull request #59 from adikabintang/master
add keyword inline to some function definitions to avoid linking error
This commit is contained in:
commit
083106339c
@ -769,7 +769,7 @@ inline bool read_headers(Stream& strm, Headers& headers)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool read_content_with_length(Stream& strm, std::string& out, size_t len, Progress progress)
|
inline bool read_content_with_length(Stream& strm, std::string& out, size_t len, Progress progress)
|
||||||
{
|
{
|
||||||
out.assign(len, 0);
|
out.assign(len, 0);
|
||||||
size_t r = 0;
|
size_t r = 0;
|
||||||
@ -789,7 +789,7 @@ bool read_content_with_length(Stream& strm, std::string& out, size_t len, Progre
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool read_content_without_length(Stream& strm, std::string& out)
|
inline bool read_content_without_length(Stream& strm, std::string& out)
|
||||||
{
|
{
|
||||||
for (;;) {
|
for (;;) {
|
||||||
char byte;
|
char byte;
|
||||||
@ -805,7 +805,7 @@ bool read_content_without_length(Stream& strm, std::string& out)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool read_content_chunked(Stream& strm, std::string& out)
|
inline bool read_content_chunked(Stream& strm, std::string& out)
|
||||||
{
|
{
|
||||||
const auto bufsiz = 16;
|
const auto bufsiz = 16;
|
||||||
char buf[bufsiz];
|
char buf[bufsiz];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user