C# Class Cornerstone.Extensions.ByteExtensions

Mostrar archivo Open project: damienhaynes/moving-pictures

Public Methods

Method 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

Method Description
StrFormatByteSize ( long fileSize, [ buffer, int bufferSize ) : long

Method Details

ToFormattedByteString() public static method

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

ToHexString() public static method

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