Class TabularBase64MemoryConverter
- Namespace
- Addax.Formats.Tabular.Converters
- Assembly
- Addax.Formats.Tabular.dll
Converts binary data encoded with "base64" encoding from or to a character sequence.
public class TabularBase64MemoryConverter : TabularConverter<Memory<byte>>
- Inheritance
-
TabularBase64MemoryConverter
Constructors
TabularBase64MemoryConverter()
Initializes a new instance of the TabularBase64MemoryConverter class.
public TabularBase64MemoryConverter()
Methods
TryFormat(Memory<byte>, Span<char>, IFormatProvider?, out int)
When overridden in a derived class, tries to format the value into a character sequence.
public override bool TryFormat(Memory<byte> value, Span<char> destination, IFormatProvider? provider, out int charsWritten)
Parameters
value
Memory<byte>The value to format.
destination
Span<char>The buffer to write the value to.
provider
IFormatProviderAn object that supplies culture-specific formatting information.
charsWritten
intWhen this method returns, contains an integer that is the number of characters that were written in
destination
. This parameter is treated as uninitialized.
Returns
Remarks
Throws a NotSupportedException exception by default.
TryParse(ReadOnlySpan<char>, IFormatProvider?, out Memory<byte>)
When overridden in a derived class, tries to parse the character sequence into a value.
public override bool TryParse(ReadOnlySpan<char> source, IFormatProvider? provider, out Memory<byte> value)
Parameters
source
ReadOnlySpan<char>The buffer to read a value from.
provider
IFormatProviderAn object that supplies culture-specific formatting information.
value
Memory<byte>When this method returns, contains a value that is the result of successfully parsing
source
, or an undefined value on failure. This parameter is treated as uninitialized.
Returns
Remarks
Throws a NotSupportedException exception by default.