C# Class Cornerstone.Extensions.ByteExtensions

Afficher le fichier Open project: damienhaynes/moving-pictures

Méthodes publiques

Méthode Description
ToFormattedByteString ( this fileSize ) : string

returns localised pretty string for byte size

ToHexString ( this self ) : string

Converts a byte array to a hexadecimal string (hash)

Private Methods

Méthode Description
StrFormatByteSize ( long fileSize, [ buffer, int bufferSize ) : long

Method Details

ToFormattedByteString() public static méthode

returns localised pretty string for byte size
public static ToFormattedByteString ( this fileSize ) : string
fileSize this filesize in bytes
Résultat string

ToHexString() public static méthode

Converts a byte array to a hexadecimal string (hash)
public static ToHexString ( this self ) : string
self this
Résultat string