Add macro to implement static encode functions.