Medial Code Documentation
Loading...
Searching...
No Matches
Public Member Functions
dmlc::io::s3::HttpReadStream Class Reference

simple http read stream to check More...

Inheritance diagram for dmlc::io::s3::HttpReadStream:
dmlc::io::s3::CURLReadStreamBase dmlc::SeekStream dmlc::Stream

Public Member Functions

 HttpReadStream (const URI &path)
 
virtual void InitRequest (size_t begin_bytes, CURL *ecurl, curl_slist **slist)
 initialize the ecurl request,
 
- Public Member Functions inherited from dmlc::io::s3::CURLReadStreamBase
virtual size_t Tell (void)
 tell the position of the stream
 
virtual bool AtEnd (void) const
 
virtual void Write (const void *ptr, size_t size)
 writes data to a stream
 
virtual void Seek (size_t pos)
 seek to certain position of the file
 
virtual size_t Read (void *ptr, size_t size)
 reads data from a stream
 
- Public Member Functions inherited from dmlc::Stream
virtual ~Stream (void)
 virtual destructor
 
template<typename T >
void Write (const T &data)
 writes a data to stream.
 
template<typename T >
bool Read (T *out_data)
 loads a data from stream.
 
template<typename T >
void WriteArray (const T *data, size_t num_elems)
 Endian aware write array of data.
 
template<typename T >
bool ReadArray (T *data, size_t num_elems)
 Endian aware read array of data.
 

Additional Inherited Members

- Static Public Member Functions inherited from dmlc::SeekStream
static SeekStreamCreateForRead (const char *uri, bool allow_null=false)
 generic factory function create an SeekStream for read only, the stream will close the underlying files upon deletion error will be reported and the system will exit when create failed
 
- Static Public Member Functions inherited from dmlc::Stream
static StreamCreate (const char *uri, const char *const flag, bool allow_null=false)
 generic factory function create an stream, the stream will close the underlying files upon deletion
 
- Protected Attributes inherited from dmlc::io::s3::CURLReadStreamBase
size_t expect_file_size_
 

Detailed Description

simple http read stream to check

Member Function Documentation

◆ InitRequest()

virtual void dmlc::io::s3::HttpReadStream::InitRequest ( size_t  begin_bytes,
CURL *  ecurl,
curl_slist **  slist 
)
inlinevirtual

initialize the ecurl request,

Parameters
begin_bytesthe beginning bytes of the stream
ecurla curl easy handle that can be used to set request
slista curl slist handle that can be used to set headers

Implements dmlc::io::s3::CURLReadStreamBase.


The documentation for this class was generated from the following file: