|
int | bytes_in_buffer () const |
|
| chunked_istream (std::istream &is, int size) |
|
bool | error () const |
|
std::string | error_message () const |
|
int | read_next_chunk () |
|
bool | twiddle_bytes () const |
|
Definition at line 137 of file chunked_istream.h.
◆ bytes_in_buffer()
int libdap::chunked_istream::bytes_in_buffer |
( |
| ) |
const |
|
inline |
How many bytes have been read from the stream and are now in the internal buffer?
- Returns
- Number of buffered bytes.
Definition at line 153 of file chunked_istream.h.
◆ twiddle_bytes()
bool libdap::chunked_istream::twiddle_bytes |
( |
| ) |
const |
|
inline |
Should the receiver twiddle the bytes to match the local machine's byte order? Since DAP4 uses 'receiver makes right' encoding, the onus is on the client to reorder the bytes if it is, e.g., a big endian machine reading data from a little endian server.
- Returns
- True if the client (caller) should swap bytes in multi-byte integers, etc., and false if not. This does not directly tell the endian nature of the remote server, although that can be inferred.
Definition at line 165 of file chunked_istream.h.
The documentation for this class was generated from the following file: