libdap  Updated for version 3.20.6
libdap4 is an implementation of OPeNDAP's DAP protocol.
libdap::chunked_istream Class Reference
Inheritance diagram for libdap::chunked_istream:
Inheritance graph

Public Member Functions

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
 

Protected Attributes

chunked_inbuf d_cbuf
 

Detailed Description

Definition at line 127 of file chunked_istream.h.

Member Function Documentation

◆ 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 139 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 151 of file chunked_istream.h.


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