Table of Contents

Class BTS2

Namespace
SunamoCrypt
Assembly
SunamoCrypt.dll

EN: Byte-Text-String conversion utilities CZ: Utilita pro konverzi mezi bajty, textem a řetězci

public class BTS2
Inheritance
BTS2
Inherited Members
Extension Methods

Methods

ClearEndingsBytes(List<byte>)

Removes trailing zero bytes from the byte list

public static List<byte> ClearEndingsBytes(List<byte> bytes)

Parameters

bytes List<byte>

Byte list to process

Returns

List<byte>

Byte list without trailing zeros

ConvertFromBytesToUtf8(List<byte>)

Converts bytes to UTF-8 string

public static string ConvertFromBytesToUtf8(List<byte> bytes)

Parameters

bytes List<byte>

Bytes to convert

Returns

string

UTF-8 encoded string

ConvertFromUtf8ToBytes(string)

Converts UTF-8 string to bytes

public static List<byte> ConvertFromUtf8ToBytes(string text)

Parameters

text string

Text to convert

Returns

List<byte>

List of bytes