Class Helper
A collection of helper methods to manipulate decoded strings and arrays.
Inherited Members
Namespace: OnixS.SimpleBinaryEncoding
Assembly: OnixS.SimpleBinaryEncoding.dll
Syntax
public static class Helper
Methods
CopyString(string, Span<byte>)
Copies the string value to the memory region.
Declaration
public static void CopyString(string source, Span<byte> destination)
Parameters
Type | Name | Description |
---|---|---|
string | source | The source string. |
Span<byte> | destination | The destination memory region. |
GetRealLength(ReadOnlySpan<byte>)
Returns the null-terminated string length.
Declaration
public static int GetRealLength(ReadOnlySpan<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<byte> | buffer | The memory region. |
Returns
Type | Description |
---|---|
int | The null-terminated string length. |