pps_encoder_initialize()

Initialize an encoder structure

Synopsis:

#include <sys/pps.h>
            
void pps_encoder_initialize(pps_encoder_t *encoder, 
                            bool encodeJSON);

Arguments:

encoder
A pointer to the PPS encoder structure.
encodeJSON
If true, data is encoded as JSON rather than PPS.

Library:

libpps

Description:

The function pps_encoder_initialize() initializes an encoder structure from an unknown state. It initializes the memory used by the encoder to a known value, and then sets the encoding level to either 0 or 1, depending on the value specified for encodeJSON (0 for PPS encoding ; 1 for JSON encoding).

Classification:

QNX Neutrino

Safety:  
Interrupt handler No
Signal handler No
Thread Yes