C# Class IPod.Utility

Show file Open project: mono/ipod-sharp

Public Methods

Method Description
DateToMacTime ( System.DateTime date ) : uint
MacTimeToDate ( uint time ) : System.DateTime
MaybeSwap ( byte val, bool isbe ) : byte[]
MaybeSwap ( int val, bool isbe ) : int
MaybeSwap ( long val, bool isbe ) : long
MaybeSwap ( short val, bool isbe ) : short
Swap ( byte bytes ) : byte[]
Swap ( int number ) : int
Swap ( long number ) : long
Swap ( short number ) : short

Method Details

DateToMacTime() public static method

public static DateToMacTime ( System.DateTime date ) : uint
date System.DateTime
return uint

MacTimeToDate() public static method

public static MacTimeToDate ( uint time ) : System.DateTime
time uint
return System.DateTime

MaybeSwap() public static method

public static MaybeSwap ( byte val, bool isbe ) : byte[]
val byte
isbe bool
return byte[]

MaybeSwap() public static method

public static MaybeSwap ( int val, bool isbe ) : int
val int
isbe bool
return int

MaybeSwap() public static method

public static MaybeSwap ( long val, bool isbe ) : long
val long
isbe bool
return long

MaybeSwap() public static method

public static MaybeSwap ( short val, bool isbe ) : short
val short
isbe bool
return short

Swap() public static method

public static Swap ( byte bytes ) : byte[]
bytes byte
return byte[]

Swap() public static method

public static Swap ( int number ) : int
number int
return int

Swap() public static method

public static Swap ( long number ) : long
number long
return long

Swap() public static method

public static Swap ( short number ) : short
number short
return short