C# Класс SharpBoot.Utils

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

Открытые свойства

Свойство Тип Описание
CurrentRandom System.Random

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

Метод Описание
AddRecommended ( this arr, int recIndex ) : List
AddRecommended ( this arr, int recIndex ) : string[]
CRC32 ( byte ct ) : string
CRC32 ( string ct ) : string
DownloadWithoutCache ( string url, bool redl = true ) : string
DrawFilledRectangle ( int w, int h, Color c ) : Bitmap
FileHash ( string fileName, string hash ) : string
FileMD5 ( string fileName ) : string
FileSHA1 ( string fileName ) : string
FileSHA256 ( string fileName ) : string
FileSHA384 ( string fileName ) : string
FileSHA512 ( string fileName ) : string
FormatDrive ( string driveLetter, string fileSystem = "NTFS", bool quickFormat = true, int clusterSize = 8192, string label = "SHARPBOOT", bool enableCompression = false ) : uint
FormatEx ( this s ) : string
GetFlag ( string twocode ) : Image
GetPhysicalPath ( string letter ) : string
InstallMBR ( string l, byte theMbr ) : void
IsExternalDisk ( string driveLetter ) : bool
MakeURLRandom ( string url ) : string
RandomString ( int Size ) : string
RemoveRecommended ( this s ) : string
ToByteArray ( this img ) : byte[]
Wrap ( this text, int maxLength ) : List

Приватные методы

Метод Описание
CreateFile ( [ fileName, uint fileAccess, uint fileShare, IntPtr securityAttributes, uint creationDisposition, uint flags, IntPtr template ) : SafeFileHandle
DeviceIoControl ( IntPtr hDevice, uint dwIoControlCode, IntPtr lpInBuffer, uint nInBufferSize, IntPtr lpOutBuffer, uint nOutBufferSize, uint &lpBytesReturned, IntPtr lpOverlapped ) : bool
QueryDosDevice ( string DeviceName, IntPtr TargetPath, UInt32 ucchMax ) : UInt32
SetWindowTheme ( IntPtr hwnd, string pszSubAppName, string pszSubIdList ) : int

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

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

public static AddRecommended ( this arr, int recIndex ) : List
arr this
recIndex int
Результат List

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

public static AddRecommended ( this arr, int recIndex ) : string[]
arr this
recIndex int
Результат string[]

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

public static CRC32 ( byte ct ) : string
ct byte
Результат string

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

public static CRC32 ( string ct ) : string
ct string
Результат string

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

public static DownloadWithoutCache ( string url, bool redl = true ) : string
url string
redl bool
Результат string

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

public static DrawFilledRectangle ( int w, int h, Color c ) : Bitmap
w int
h int
c Color
Результат System.Drawing.Bitmap

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

public static FileHash ( string fileName, string hash ) : string
fileName string
hash string
Результат string

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

public static FileMD5 ( string fileName ) : string
fileName string
Результат string

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

public static FileSHA1 ( string fileName ) : string
fileName string
Результат string

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

public static FileSHA256 ( string fileName ) : string
fileName string
Результат string

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

public static FileSHA384 ( string fileName ) : string
fileName string
Результат string

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

public static FileSHA512 ( string fileName ) : string
fileName string
Результат string

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

public static FormatDrive ( string driveLetter, string fileSystem = "NTFS", bool quickFormat = true, int clusterSize = 8192, string label = "SHARPBOOT", bool enableCompression = false ) : uint
driveLetter string
fileSystem string
quickFormat bool
clusterSize int
label string
enableCompression bool
Результат uint

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

public static FormatEx ( this s ) : string
s this
Результат string

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

public static GetFlag ( string twocode ) : Image
twocode string
Результат Image

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

public static GetPhysicalPath ( string letter ) : string
letter string
Результат string

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

public static InstallMBR ( string l, byte theMbr ) : void
l string
theMbr byte
Результат void

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

public static IsExternalDisk ( string driveLetter ) : bool
driveLetter string
Результат bool

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

public static MakeURLRandom ( string url ) : string
url string
Результат string

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

public static RandomString ( int Size ) : string
Size int
Результат string

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

public static RemoveRecommended ( this s ) : string
s this
Результат string

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

public static ToByteArray ( this img ) : byte[]
img this
Результат byte[]

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

public static Wrap ( this text, int maxLength ) : List
text this
maxLength int
Результат List

Описание свойств

CurrentRandom публичное статическое свойство

public static Random,System CurrentRandom
Результат System.Random