comparison OrthancFramework/Sources/HttpServer/BufferHttpSender.cpp @ 4300:b30a8de92ad9

abi continued
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 05 Nov 2020 19:33:18 +0100
parents bf7b9edf6b81
children d9473bd5ed43
comparison
equal deleted inserted replaced
4299:3f85db78c441 4300:b30a8de92ad9
31 BufferHttpSender::BufferHttpSender() : 31 BufferHttpSender::BufferHttpSender() :
32 position_(0), 32 position_(0),
33 chunkSize_(0), 33 chunkSize_(0),
34 currentChunkSize_(0) 34 currentChunkSize_(0)
35 { 35 {
36 }
37
38 std::string &BufferHttpSender::GetBuffer()
39 {
40 return buffer_;
41 }
42
43 const std::string &BufferHttpSender::GetBuffer() const
44 {
45 return buffer_;
46 }
47
48 void BufferHttpSender::SetChunkSize(size_t chunkSize)
49 {
50 chunkSize_ = chunkSize;
51 }
52
53 uint64_t BufferHttpSender::GetContentLength()
54 {
55 return buffer_.size();
36 } 56 }
37 57
38 58
39 bool BufferHttpSender::ReadNextChunk() 59 bool BufferHttpSender::ReadNextChunk()
40 { 60 {