C# 클래스 SharpBoot.Utils

파일 보기 프로젝트 열기: zdimension/SharpBoot

공개 프로퍼티들

프로퍼티 타입 설명
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