Class ByteArrayExtensions
This extension class enables some convenient methods to deal with byte array.
Namespace: Libplanet
Assembly: Libplanet.dll
Syntax
public static class ByteArrayExtensions : object
Methods
| Improve this Doc View SourceStartsWith(Byte[], Byte[])
Determines whether the beginning of this byte array instance matches a specified string.
Declaration
public static bool StartsWith(this byte[] bytes, byte[] prefix)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | bytes | A byte array to check. |
Byte[] | prefix | The prefix byte array to compare. |
Returns
Type | Description |
---|---|
Boolean | true if |