Class ByteExtensions
Inherited Members
Namespace: Mapsui.Extensions
Assembly: Mapsui.dll
Syntax
public static class ByteExtensionsMethods
| Edit this page View SourceIsSkp(byte[])
true if is Skp (Skia Serialized SkPicture)
Declaration
public static bool IsSkp(this byte[] buffer)Parameters
| Type | Name | Description | 
|---|---|---|
| byte[] | buffer | buffer | 
Returns
| Type | Description | 
|---|---|
| bool | true if is xml | 
IsSvg(byte[])
Detects if a byte array represents an svg.
Declaration
public static bool IsSvg(this byte[] bytes)Parameters
| Type | Name | Description | 
|---|---|---|
| byte[] | bytes | The image data as byte array. | 
Returns
| Type | Description | 
|---|---|
| bool | True if is and svg. | 
IsXml(byte[])
true if is Xml
Declaration
public static bool IsXml(this byte[] buffer)Parameters
| Type | Name | Description | 
|---|---|---|
| byte[] | buffer | buffer | 
Returns
| Type | Description | 
|---|---|
| bool | true if is xml | 
ReadOneSearch(byte[], byte[])
Declaration
public static long ReadOneSearch(this byte[] haystack, byte[] needle)Parameters
| Type | Name | Description | 
|---|---|---|
| byte[] | haystack | stream to search | 
| byte[] | needle | pattern to find | 
Returns
| Type | Description | 
|---|---|
| long | position |