Skip to main content
Version: 3.1.0

Class NE

NE (Netly Encoding)

Assembly: Netly.dll
View Source
Declaration
public static class NE

Properties

Default

Is the default (generic) encoder used when encoding is not specified

Default value is: UTF8

View Source
Declaration
public static NE.Mode Default { get; set; }

Methods

GetBytes(string)

Convert string to bytes (using NE.Default Mode)

View Source
Declaration
public static byte[] GetBytes(string value)
Returns

System.Byte[]

Parameters
TypeNameDescription
System.StringvalueValue

GetString(byte[])

Convert bytes to string (using NE.Default Mode)

View Source
Declaration
public static string GetString(byte[] value)
Returns

System.String

Parameters
TypeNameDescription
System.Byte[]valueValue

GetString(byte[], Mode)

Convert bytes to string

View Source
Declaration
public static string GetString(byte[] value, NE.Mode encode)
Returns

System.String

Parameters
TypeNameDescription
System.Byte[]valueValue
Netly.Core.NE.ModeencodeEncoding protocol

GetBytes(string, Mode)

Convert value to bytes

View Source
Declaration
public static byte[] GetBytes(string value, NE.Mode encode)
Returns

System.Byte[]

Parameters
TypeNameDescription
System.StringvalueValue
Netly.Core.NE.ModeencodeEncoding protocol