Class Common
Inheritance
System.Object
Common
Namespace: sttz.Trimmer.Options
Assembly: Trimmer.dll
Syntax
public static class Common
Methods
| Improve this Doc View SourceDecode(Byte[], Int32)
Decode the data received from the network.
Declaration
public static string Decode(byte[] bytes, int length = -1)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | bytes | |
System.Int32 | length |
Returns
Type | Description |
---|---|
System.String |
Encode(String)
Encode a string to be sent over the network.
Declaration
public static byte[] Encode(string input)
Parameters
Type | Name | Description |
---|---|---|
System.String | input |
Returns
Type | Description |
---|---|
System.Byte[] |