GetByteCount
IDicomEncoding.GetByteCount method
Calculates the number of bytes that encoding all the characters in the specified string would produce, given the same fallback and delimiter logic as your GetBytes method.
public int GetByteCount(string data, Encoding[] encodings, ReadOnlySpan<byte> delimiters)
| Parameter | Type | Description |
|---|---|---|
| data | String | The string containing the characters to encode. |
| encodings | Encoding[] | Encodings used to encode the given data (for final‐fallback). |
| delimiters | ReadOnlySpan`1 | Delimiters in text values that reset the encoding. |
Return Value
The total number of bytes that your GetBytes would have returned.
See Also
- interface IDicomEncoding
- namespace Aspose.Medical.Common.Text
- assembly Aspose.Medical