C# 클래스 Telegram.Utils.Helpers

파일 보기 프로젝트 열기: naphaso/kilogram

공개 메소드들

메소드 설명
CalcKey ( byte sharedKey, byte msgKey, bool client ) : AESKeyData
CalcMsgKey ( byte data ) : byte[]
CalcMsgKey ( byte data, int offset, int limit ) : byte[]
FileLocationGetVideoThumbLocation ( VideoConstructor video ) : FileLocation
GenerateRandomBytes ( int num ) : byte[]
GenerateRandomLong ( ) : long
GenerateRandomUlong ( ) : ulong
GetBitmapImageInternal ( string avatarPath ) : BitmapImage
GetPreviewFileLocation ( PhotoConstructor photo ) : FileLocation
sha1 ( byte data ) : byte[]
sha1 ( byte data, int offset, int limit ) : byte[]

메소드 상세

CalcKey() 공개 정적인 메소드

public static CalcKey ( byte sharedKey, byte msgKey, bool client ) : AESKeyData
sharedKey byte
msgKey byte
client bool
리턴 Telegram.MTProto.Crypto.AESKeyData

CalcMsgKey() 공개 정적인 메소드

public static CalcMsgKey ( byte data ) : byte[]
data byte
리턴 byte[]

CalcMsgKey() 공개 정적인 메소드

public static CalcMsgKey ( byte data, int offset, int limit ) : byte[]
data byte
offset int
limit int
리턴 byte[]

FileLocationGetVideoThumbLocation() 공개 정적인 메소드

public static FileLocationGetVideoThumbLocation ( VideoConstructor video ) : FileLocation
video VideoConstructor
리턴 FileLocation

GenerateRandomBytes() 공개 정적인 메소드

public static GenerateRandomBytes ( int num ) : byte[]
num int
리턴 byte[]

GenerateRandomLong() 공개 정적인 메소드

public static GenerateRandomLong ( ) : long
리턴 long

GenerateRandomUlong() 공개 정적인 메소드

public static GenerateRandomUlong ( ) : ulong
리턴 ulong

GetBitmapImageInternal() 공개 정적인 메소드

public static GetBitmapImageInternal ( string avatarPath ) : BitmapImage
avatarPath string
리턴 System.Windows.Media.Imaging.BitmapImage

GetPreviewFileLocation() 공개 정적인 메소드

public static GetPreviewFileLocation ( PhotoConstructor photo ) : FileLocation
photo PhotoConstructor
리턴 FileLocation

sha1() 공개 정적인 메소드

public static sha1 ( byte data ) : byte[]
data byte
리턴 byte[]

sha1() 공개 정적인 메소드

public static sha1 ( byte data, int offset, int limit ) : byte[]
data byte
offset int
limit int
리턴 byte[]