# Functions
DecodeASCII decodes 7-bit ISO-646 packed ASCII bit strings into their UTF-8 representations, starting at the given bit offset.
DecodeSGTIN decodes SGTIN-96 and SGTIN-198 encoded EPCs to SGTIN structures, or returns an error if the data cannot be converted to an SGTIN.
DecodeSGTINString accepts a big endian, hex-encoded SGTIN EPC and returns its SGTIN representation, or an error if it cannot be decoded as such.
EscapeGS1 returns s with the following characters replaced by their GS1 escape sequences: - `"` -> "%22" - `#` -> "%23" (note: only valid for AI Component and Parts) - `%` -> "%25" - `&` -> "%26" - `/` -> "%2F" - `<` -> "%3C" - `>` -> "%3E" - `?` -> "%3F"
Additionally, removes null bytes.
IsGS1Alphanumeric returns true if the string contains only characters allowed in GS1 Application Identifier character set, or null bytes NOT followed by any non-null byte.
IsGS1CompPartEncodable returns true if the string contains only characters allowed in the GS1 Application Identifier for Component and Parts character set, or null bytes NOT followed by any non-null byte.
NewSGTIN returns an SGTIN with the given values.
SGTINToGTIN14 is a convenience method for decoding an SGTIN encoded EPC from a big-endian, hex string to its corresponding GS1 GTIN element string.
SGTINToPureURI is a convenience method for decoding an SGTIN encoded EPC from a big-endian, hex string to its corresponding GS1 Pure Identity URI.
UnescapeGS1 returns s with the following escape sequences replaced by their GS1 character equivalents.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
198 bits are not byte-aligned.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
SGTIN does not directly correspond to a GS1 identifier, but instead is a combination of a GS1 GTIN (global trade identification number) and a serial "number" to identify the specific instance of that GTIN.
# Type aliases
No description provided by the author