what is the C++ code for encoders?

any ideas