| Name | Message | Date |
|---|---|---|
| 📄 AsciiText.cs | 1 month ago | |
| 📄 DltMessageParser.cs | 1 month ago | |
| 📄 SpanReader.cs | 1 month ago |
📄
src/Internal/AsciiText.cs
using System.Text; namespace SharpDlt.Internal; /// <summary>Helpers to decode the fixed size ASCII fields of the DLT protocol.</summary> internal static class AsciiText { /// <summary> /// Decodes a fixed size ASCII field, replacing invalid bytes and stripping NUL padding. /// </summary> public static string Decode(ReadOnlySpan<byte> data) => Encoding.ASCII.GetString(data).Replace("\0", string.Empty, StringComparison.Ordinal); }