---
layout: default-layout
title: CECISegment Class - Dynamsoft Barcode Reader C++ Edition API Reference
description: API reference for the CECISegment class in Dynamsoft Barcode Reader C++ Edition, representing an Extended Channel Interpretation (ECI) segment that specifies the character encoding for a portion of a decoded barcode's bytes.
keywords: CECISegment, ECI, Extended Channel Interpretation, api reference
---

# CECISegment Class

The `CECISegment` class represents the Extended Channel Interpretation (ECI) information within a barcode. Each ECI segment specifies the character encoding used for a portion of the decoded bytes. The charset names follow the IANA character set registry (e.g. "UTF-8", "ISO-8859-1").

**Remarks**

Introduced in Dynamsoft Barcode Reader SDK version 11.4.1000 and Dynamsoft Capture Vision version 3.4.1000.

## Definition

*Namespace:* dynamsoft::dbr

*Assembly:* DynamsoftBarcodeReader

```cpp
class CECISegment
```

## Attributes

| Attribute | Type | Description |
| --------- | ---- | ----------- |
| [`eciValue`](#ecivalue) | *int* | ECI assignment number as defined by ISO/IEC 15424. |
| [`charsetEncoding`](#charsetencoding) | *const char\** | Charset encoding name defined by IANA. |
| [`startIndex`](#startindex) | *int* | Start index of this ECI segment in the decoded barcode bytes. |
| [`length`](#length) | *int* | Length (in bytes) of this segment within the decoded barcode bytes. |

### eciValue

ECI assignment number as defined by ISO/IEC 15424.

```cpp
int eciValue
```

### charsetEncoding

Charset encoding name defined by IANA (e.g. "UTF-8", "ISO-8859-1").

```cpp
const char* charsetEncoding
```

### startIndex

Start index of this ECI segment in the decoded barcode bytes.

```cpp
int startIndex
```

### length

Length (in bytes) of this segment within the decoded barcode bytes.

```cpp
int length
```

## See Also

- [`CBarcodeResultItem`]({{ site.dbr_cpp_api }}barcode-result-item.html)
- [`CDecodedBarcodeElement`]({{ site.dbr_cpp_api }}decoded-barcode-element.html)
