das2C
das core C utilities (v3)
Data Structures | Macros | Functions
encoding.h File Reference

Defines storage and access methods for values in a das stream. More...

#include <das2/util.h>
#include <das2/units.h>
#include <das2/buffer.h>
Include dependency graph for encoding.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  DasEncoding
 Reading and writing values to buffers. More...
 

Macros

#define DAS2DT_FLOAT   0x0401
 4-byte real number, in host byte order
 

Functions

DAS_API double getDas2Fill (void)
 An inconvenient way to get canonical fill value, -1e31.
 
DAS_API int isDas2Fill (double value)
 An inconvenient way to check for the canonical fill value, -1e31.
 
DAS_API DasEncodingDasEnc_copy (DasEncoding *pThis)
 Deepcopy a DasEncoding pointer.
 
DAS_API bool DasEnc_equals (const DasEncoding *pOne, const DasEncoding *pTwo)
 Check for equality between two encodings. More...
 

Detailed Description

Defines storage and access methods for values in a das stream.

Function Documentation

◆ DasEnc_equals()

DAS_API bool DasEnc_equals ( const DasEncoding pOne,
const DasEncoding pTwo 
)

Check for equality between two encodings.

Parameters
pOneThe first encoding
pTwoThe second encoding
Returns
true if the encodings have the same category, width, and format string.