Internal Pimpl structure of class HttpIo.
More...
|
| HttpImpl (const std::string &path, size_t blockSize) |
| Constructor.
|
|
long | getFileLength () |
| Get the length (in bytes) of the remote file. More...
|
|
void | getDataByRange (long lowBlock, long highBlock, std::string &response) |
| Get the data by range. More...
|
|
void | writeRemote (const byte *data, size_t size, long from, long to) |
| Submit the data to the remote machine. The data replace a part of the remote file. The replaced part of remote file is indicated by from and to parameters. More...
|
|
| Impl (const std::string &path, size_t blockSize) |
| Constructor.
|
|
virtual | ~Impl () |
| Destructor. Releases all managed memory.
|
|
virtual size_t | populateBlocks (size_t lowBlock, size_t highBlock) |
| Get the data from the remote machine and write them to the memory blocks. More...
|
|
Internal Pimpl structure of class HttpIo.
◆ getDataByRange()
void Exiv2::HttpIo::HttpImpl::getDataByRange |
( |
long |
lowBlock, |
|
|
long |
highBlock, |
|
|
std::string & |
response |
|
) |
| |
|
virtual |
Get the data by range.
- Parameters
-
lowBlock | The start block index. |
highBlock | The end block index. |
response | The data from the server. |
- Exceptions
-
Error | if the server returns the error code. |
- Note
- Set lowBlock = -1 and highBlock = -1 to get the whole file content.
Implements Exiv2::RemoteIo::Impl.
References Exiv2::http(), and Exiv2::string.
◆ getFileLength()
long Exiv2::HttpIo::HttpImpl::getFileLength |
( |
| ) |
|
|
virtual |
Get the length (in bytes) of the remote file.
- Returns
- Return -1 if the size is unknown. Otherwise it returns the length of remote file (in bytes).
- Exceptions
-
Error | if the server returns the error code. |
Implements Exiv2::RemoteIo::Impl.
References Exiv2::http(), and Exiv2::string.
◆ writeRemote()
void Exiv2::HttpIo::HttpImpl::writeRemote |
( |
const byte * |
data, |
|
|
size_t |
size, |
|
|
long |
from, |
|
|
long |
to |
|
) |
| |
|
virtual |
The documentation for this class was generated from the following file: