Added support for encoding/decoding of C field

Signed-off-by: Bleska <blecha.jiri@gmail.com>