GetBytes

DicomEncoding.GetBytes method

Encodes all the characters in the specified string into a Byte’s array.

public virtual byte[] GetBytes(string data, Encoding[] encodings, byte paddingValue, 
    ReadOnlySpan<byte> delimiters)
ParameterTypeDescription
dataStringThe string containing the characters to encode.
encodingsEncoding[]Encodings used to encode the given data.
paddingValueByteByte value used to pad result Byte’s array to even length.
delimitersReadOnlySpan`1Delimiters in text values that reset the encoding.

Return Value

A Byte array containing the results of encoding the specified set of characters.

See Also