C# 클래스 StratosCompanionWebApi.Workbench.CompanionFiles.Extensions

파일 보기 프로젝트 열기: SilversphereInc/RedisRipper

공개 메소드들

메소드 설명
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