Mercurial > hg > orthanc
diff OrthancFramework/Sources/HttpServer/BufferHttpSender.h @ 4300:b30a8de92ad9
abi continued
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 05 Nov 2020 19:33:18 +0100 |
parents | 7112a8af0b63 |
children | d9473bd5ed43 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/HttpServer/BufferHttpSender.h Thu Nov 05 18:24:50 2020 +0100 +++ b/OrthancFramework/Sources/HttpServer/BufferHttpSender.h Thu Nov 05 19:33:18 2020 +0100 @@ -36,32 +36,20 @@ public: BufferHttpSender(); - std::string& GetBuffer() - { - return buffer_; - } + std::string& GetBuffer(); - const std::string& GetBuffer() const - { - return buffer_; - } + const std::string& GetBuffer() const; // This is for test purpose. If "chunkSize" is set to "0" (the // default), the entire buffer is consumed at once. - void SetChunkSize(size_t chunkSize) - { - chunkSize_ = chunkSize; - } + void SetChunkSize(size_t chunkSize); /** * Implementation of the IHttpStreamAnswer interface. **/ - virtual uint64_t GetContentLength() ORTHANC_OVERRIDE - { - return buffer_.size(); - } + virtual uint64_t GetContentLength() ORTHANC_OVERRIDE; virtual bool ReadNextChunk() ORTHANC_OVERRIDE;