C# Класс StratosCompanionWebApi.Workbench.CompanionFiles.Extensions

Показать файл Открыть проект

Открытые методы

Метод Описание
AddCRC16 ( this data, int offset, int length ) : void

Computes the CRC-16 value of a list of bytes and appends the resulting two bytes to the end of the list.

ComputeCRC16 ( List data, int offset, int length ) : UInt16

Computes the CRC-16 value of a list of bytes.

MaximumLength ( this str, int maxLength ) : string
StringToPaddedList ( this value, int maximumLength ) : List

Converts a string to a UTF-8 encoded list of bytes. Will pad the right side of the string with spaces to fill out the maximum length if necessary.

Описание методов

AddCRC16() публичный статический Метод

Computes the CRC-16 value of a list of bytes and appends the resulting two bytes to the end of the list.
public static AddCRC16 ( this data, int offset, int length ) : void
data this
offset int
length int
Результат void

ComputeCRC16() публичный статический Метод

Computes the CRC-16 value of a list of bytes.
public static ComputeCRC16 ( List data, int offset, int length ) : UInt16
data List
offset int
length int
Результат System.UInt16

MaximumLength() публичный статический Метод

public static MaximumLength ( this str, int maxLength ) : string
str this
maxLength int
Результат string

StringToPaddedList() публичный статический Метод

Converts a string to a UTF-8 encoded list of bytes. Will pad the right side of the string with spaces to fill out the maximum length if necessary.
public static StringToPaddedList ( this value, int maximumLength ) : List
value this
maximumLength int
Результат List