zplCore.comzplCore.com
record13 members

EpcSchemeInfo

public record EpcSchemeInfo

Static data of an EpcScheme: header, name, bit length.

Constructors

SignatureDescription
# EpcSchemeInfo(EpcScheme Scheme, string Name, byte Header, int Bits, EpcKeyType Key)Static data of an EpcScheme: header, name, bit length. Scheme: The scheme. · Name: Name as in TDS Table 14-1 and in the Tag URI, e.g. "sgtin-96", "sgtin+". · Header: 8-bit EPC header (TDS Table 14-1). · Bits: Encoded length in bits, or 0 for variable-length "+" schemes. · Key: The GS1 key.

Properties

PropertyTypeDescription
static All { get; }IReadOnlyList<EpcSchemeInfo>All supported schemes.
Bits { get; init; }intEncoded length in bits, or 0 for variable-length "+" schemes.
Header { get; init; }byte8-bit EPC header (TDS Table 14-1).
IsPlus { get; }boolA TDS 2.0 "+" scheme (no Tag URI, no partition, +AIDC data toggle bit).
Key { get; init; }EpcKeyTypeThe GS1 key.
Name { get; init; }stringName as in TDS Table 14-1 and in the Tag URI, e.g. "sgtin-96", "sgtin+".
Scheme { get; init; }EpcSchemeThe scheme.

Methods

Method SignatureReturnsDescription
static # ByHeader(byte header)EpcSchemeInfoScheme by header byte, or null when TDS assigns no supported scheme to it.
static # ByName(string name)EpcSchemeInfoScheme by name ("sgtin-96", "SGTIN96", "sgtin+", "dsgtin-plus" …, case-insensitive), or null.
# Deconstruct(out EpcScheme Scheme, out string Name, out byte Header, out int Bits, out EpcKeyType Key)void
static # Of(EpcScheme scheme)EpcSchemeInfoInfo of scheme.
static # OtherSchemeName(byte header)stringTDS name of a header value that is defined in Table 14-1 but not supported here (e.g. "gid-96", "cpi-96", "sgtin++"), or null.