Decode

DicomEncoding.Decode method

Decodes all the byte fragments in the specified Byte array into a String using a set of the given encodings.

public virtual string Decode(Span<byte> data, Encoding[] encodings, ReadOnlySpan<byte> delimiters)
ParameterTypeDescription
dataSpan`1The Byte data to be decoded into a String (can be multi-charset).
encodingsEncoding[]A list of registered encodings that can be used to decode the given data.
delimitersReadOnlySpan`1Delimiters in text values that reset the encoding.

Return Value

A String that contains the results of decoding the specified sequence of bytes.

Exceptions

exceptioncondition
MedicalApiExceptionUnknown escape sequence found in the given fragment.

See Also