codec_value_to_int32
retval = codec_value_to_int32(obj, "flags", &ti->flags);
retval = codec_value_to_int32(obj, "length", &ti->length);
retval = codec_value_to_int32(obj, "format", &ti->format);
retval = codec_value_to_int32(val, "tokeninfo", &indx);