pl.mn.communicator.packet
Class GGUtils

java.lang.Object
  extended by pl.mn.communicator.packet.GGUtils

public class GGUtils
extends java.lang.Object

Version:
$Id: GGUtils.java,v 1.1 2005/11/05 23:34:52 winnetou25 Exp $
Author:
Mateusz Szczap

Constructor Summary
GGUtils()
           
 
Method Summary
static int byteToInt(byte[] buf)
           
static int byteToInt(byte[] buf, int start)
           
static int byteToShort(byte[] buf, int start)
           
static java.lang.String byteToString(byte[] data, int startIndex)
           
static byte[] convertIntToByteArray(int i)
           
static int getLoginHash(char[] password, int seed)
           
static byte[] intToByte(int buf)
           
static int millisToSeconds(long millis)
           
static java.lang.String prettyBytesToString(byte[] bytes)
           
static long secondsToMillis(int seconds)
           
static int unsignedByteToInt(byte i)
           
static long unsignedIntToLong(int i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GGUtils

public GGUtils()
Method Detail

prettyBytesToString

public static java.lang.String prettyBytesToString(byte[] bytes)

byteToInt

public static int byteToInt(byte[] buf)

byteToInt

public static int byteToInt(byte[] buf,
                            int start)

byteToShort

public static int byteToShort(byte[] buf,
                              int start)

secondsToMillis

public static long secondsToMillis(int seconds)

millisToSeconds

public static int millisToSeconds(long millis)

unsignedByteToInt

public static int unsignedByteToInt(byte i)

intToByte

public static byte[] intToByte(int buf)

unsignedIntToLong

public static long unsignedIntToLong(int i)

byteToString

public static java.lang.String byteToString(byte[] data,
                                            int startIndex)

convertIntToByteArray

public static byte[] convertIntToByteArray(int i)

getLoginHash

public static int getLoginHash(char[] password,
                               int seed)


Copyright 2004-2004-2005 SourceForge.net. All Rights Reserved.