Extension methods for converting byte array to generic objects
More...
Extension methods for converting byte array to generic objects
◆ AsString()
static string Sphyrnidae.Common.Extensions.ByteArrayExtensions.AsString |
( |
this byte[] |
bytes | ) |
|
|
static |
Converts a byte[] into a string
- Parameters
-
bytes | The byte[] being converted |
- Returns
- The string
◆ FromByteArray< T >()
static T Sphyrnidae.Common.Extensions.ByteArrayExtensions.FromByteArray< T > |
( |
this byte[] |
bytes | ) |
|
|
static |
Converts a byte[] into an object
- Template Parameters
-
- Parameters
-
bytes | The byte[] being converted |
- Returns
- The object (or default)
◆ ToByteArray< T >()
static byte [] Sphyrnidae.Common.Extensions.ByteArrayExtensions.ToByteArray< T > |
( |
this T |
obj | ) |
|
|
static |
Converts an object to a byte[]
- Template Parameters
-
- Parameters
-
obj | The object being converted |
- Returns
- The byte[] (or null)
◆ ToBytes()
static byte [] Sphyrnidae.Common.Extensions.ByteArrayExtensions.ToBytes |
( |
this string |
s | ) |
|
|
static |
Converts a string into a byte[]
- Parameters
-
s | The string being converted |
- Returns
- The byte[]
The documentation for this class was generated from the following file:
- C:/Users/dougb/Desktop/Sphyrnidae/New/Common/Common/Extensions/ByteArrayExtensions.cs