Méthode | Description | |
---|---|---|
GetTempFilename ( ) : string |
Return a random filename, suitable for use as a temporary file. The System.IO.Path.GetRandomFileName() method is not available on the Compact Framework, so this library provides its own substitute. |
|
RoundToEvenSecond ( System.DateTime source ) : System.DateTime |
Round the given DateTime value to an even second value. Round up in the case of an odd second value. The rounding does not consider fractional seconds. This is useful because the Zip spec allows storage of time only to the nearest even second. So if you want to compare the time of an entry in the archive with it's actual time in the filesystem, you need to round the actual filesystem time, or use a 2-second threshold for the comparison. This is most nautrally an extension method for the DateTime class but this library is built for .NET 2.0, not for .NET 3.5; This means extension methods are a no-no. |
|
StringToMemoryStream ( string s ) : System.IO.MemoryStream |
Creates a
|
|
TrimVolumeAndSwapSlashes ( string pathName ) : string |
Utility routine for transforming path names.
|
Méthode | Description | |
---|---|---|
FindSignature ( System stream, int SignatureToFind ) : long |
Finds a signature in the zip stream. This is useful for finding the end of a zip entry, for example.
|
Méthode | Description | |
---|---|---|
DateTimeToPacked ( System.DateTime time ) : |
||
GenerateRandomStringImpl ( int length, int delta ) : string | ||
GetOneRandomChar ( int delta ) : char | ||
PackedToDateTime ( |
||
ReadInt ( System s ) : int | ||
ReadSignature ( System s ) : int | ||
SharedUtilities ( ) : System | ||
StringFromBuffer ( byte buf, int maxlength ) : string | ||
StringFromBuffer ( byte buf, int maxlength, System encoding ) : string | ||
StringToByteArray ( string value ) : byte[] | ||
StringToByteArray ( string value, System encoding ) : byte[] | ||
Utf8StringFromBuffer ( byte buf, int maxlength ) : string | ||
Utf8StringToByteArray ( string value ) : byte[] | ||
_ReadFourBytes ( System s, string message ) : int |
protected static FindSignature ( System stream, int SignatureToFind ) : long | ||
stream | System | |
SignatureToFind | int | |
Résultat | long |
public static RoundToEvenSecond ( System.DateTime source ) : System.DateTime | ||
source | System.DateTime | The DateTime value to round |
Résultat | System.DateTime |
public static StringToMemoryStream ( string s ) : System.IO.MemoryStream | ||
s | string | The string to use as input for the MemoryStream |
Résultat | System.IO.MemoryStream |
public static TrimVolumeAndSwapSlashes ( string pathName ) : string | ||
pathName | string | source path. |
Résultat | string |