mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-24 11:28:22 +02:00
mass replaced all methods to pascal case
This commit is contained in:
parent
ed0a0a58f7
commit
24f55139dd
179 changed files with 1585 additions and 1585 deletions
|
@ -283,7 +283,7 @@ namespace FFXIVClassic.Common
|
|||
|
||||
public Blowfish(byte[] key)
|
||||
{
|
||||
initializeBlowfish(key);
|
||||
InitializeBlowfish(key);
|
||||
}
|
||||
|
||||
public void Encipher(byte[] data, int offset, int length)
|
||||
|
@ -295,7 +295,7 @@ namespace FFXIVClassic.Common
|
|||
{
|
||||
uint xl = (uint)((data[i + 0]) | (data[i + 1] << 8) | (data[i + 2] << 16) | (data[i + 3] << 24));
|
||||
uint xr = (uint)((data[i + 4]) | (data[i + 5] << 8) | (data[i + 6] << 16) | (data[i + 7] << 24));
|
||||
blowfish_encipher(ref xl, ref xr);
|
||||
BlowfishEncipher(ref xl, ref xr);
|
||||
data[i + 0] = (byte)(xl >> 0);
|
||||
data[i + 1] = (byte)(xl >> 8);
|
||||
data[i + 2] = (byte)(xl >> 16);
|
||||
|
@ -316,7 +316,7 @@ namespace FFXIVClassic.Common
|
|||
{
|
||||
uint xl = (uint)((data[i + 0]) | (data[i + 1] << 8) | (data[i + 2] << 16) | (data[i + 3] << 24));
|
||||
uint xr = (uint)((data[i + 4]) | (data[i + 5] << 8) | (data[i + 6] << 16) | (data[i + 7] << 24));
|
||||
blowfish_decipher(ref xl, ref xr);
|
||||
BlowfishDecipher(ref xl, ref xr);
|
||||
data[i + 0] = (byte)(xl >> 0);
|
||||
data[i + 1] = (byte)(xl >> 8);
|
||||
data[i + 2] = (byte)(xl >> 16);
|
||||
|
@ -351,7 +351,7 @@ namespace FFXIVClassic.Common
|
|||
return y;
|
||||
}
|
||||
|
||||
private void blowfish_encipher(ref UInt32 xl, ref UInt32 xr)
|
||||
private void BlowfishEncipher(ref UInt32 xl, ref UInt32 xr)
|
||||
{
|
||||
UInt32 temp;
|
||||
Int32 i;
|
||||
|
@ -374,7 +374,7 @@ namespace FFXIVClassic.Common
|
|||
|
||||
}
|
||||
|
||||
private void blowfish_decipher(ref UInt32 xl, ref UInt32 xr)
|
||||
private void BlowfishDecipher(ref UInt32 xl, ref UInt32 xr)
|
||||
{
|
||||
UInt32 temp;
|
||||
Int32 i;
|
||||
|
@ -383,13 +383,13 @@ namespace FFXIVClassic.Common
|
|||
xl = xl ^ P[i];
|
||||
xr = F(xl) ^ xr;
|
||||
|
||||
/* Exchange xl and xr */
|
||||
/* ExChange xl and xr */
|
||||
temp = xl;
|
||||
xl = xr;
|
||||
xr = temp;
|
||||
}
|
||||
|
||||
/* Exchange xl and xr */
|
||||
/* ExChange xl and xr */
|
||||
temp = xl;
|
||||
xl = xr;
|
||||
xr = temp;
|
||||
|
@ -399,7 +399,7 @@ namespace FFXIVClassic.Common
|
|||
|
||||
}
|
||||
|
||||
private int initializeBlowfish(byte [] key)
|
||||
private int InitializeBlowfish(byte [] key)
|
||||
{
|
||||
Int16 i;
|
||||
Int16 j;
|
||||
|
@ -433,7 +433,7 @@ namespace FFXIVClassic.Common
|
|||
|
||||
for (i = 0; i < N + 2; i += 2)
|
||||
{
|
||||
blowfish_encipher(ref datal, ref datar);
|
||||
BlowfishEncipher(ref datal, ref datar);
|
||||
|
||||
P[i] = datal;
|
||||
P[i + 1] = datar;
|
||||
|
@ -443,7 +443,7 @@ namespace FFXIVClassic.Common
|
|||
{
|
||||
for (j = 0; j < 256; j += 2)
|
||||
{
|
||||
blowfish_encipher(ref datal, ref datar);
|
||||
BlowfishEncipher(ref datal, ref datar);
|
||||
S[i,j] = datal;
|
||||
S[i,j + 1] = datar;
|
||||
}
|
||||
|
|
|
@ -25,14 +25,14 @@ namespace FFXIVClassic.Common
|
|||
_buckets = new element[_capacity][];
|
||||
}
|
||||
|
||||
public uint hash(ulong key)
|
||||
public uint Hash(ulong key)
|
||||
{
|
||||
return (uint)(key % _capacity);
|
||||
}
|
||||
|
||||
public void Add(ulong key, T value)
|
||||
{
|
||||
uint hsh = hash(key);
|
||||
uint hsh = Hash(key);
|
||||
element[] e;
|
||||
if (_buckets[hsh] == null)
|
||||
_buckets[hsh] = e = new element[1];
|
||||
|
@ -53,7 +53,7 @@ namespace FFXIVClassic.Common
|
|||
|
||||
public T Get(ulong key)
|
||||
{
|
||||
uint hsh = hash(key);
|
||||
uint hsh = Hash(key);
|
||||
element[] e = _buckets[hsh];
|
||||
if (e == null) return default(T);
|
||||
foreach (var f in e)
|
||||
|
@ -64,7 +64,7 @@ namespace FFXIVClassic.Common
|
|||
|
||||
public bool Has(ulong key)
|
||||
{
|
||||
uint hsh = hash(key);
|
||||
uint hsh = Hash(key);
|
||||
element[] e = _buckets[hsh];
|
||||
if (e == null) return false;
|
||||
foreach (var f in e)
|
||||
|
@ -104,14 +104,14 @@ namespace FFXIVClassic.Common
|
|||
_buckets = new element[_capacity][];
|
||||
}
|
||||
|
||||
public uint hash(uint key)
|
||||
public uint Hash(uint key)
|
||||
{
|
||||
return (uint)(key % _capacity);
|
||||
}
|
||||
|
||||
public void Add(uint key, T value)
|
||||
{
|
||||
uint hsh = hash(key);
|
||||
uint hsh = Hash(key);
|
||||
element[] e;
|
||||
if (_buckets[hsh] == null)
|
||||
_buckets[hsh] = e = new element[1];
|
||||
|
@ -132,7 +132,7 @@ namespace FFXIVClassic.Common
|
|||
|
||||
public T Get(uint key)
|
||||
{
|
||||
uint hsh = hash(key);
|
||||
uint hsh = Hash(key);
|
||||
element[] e = _buckets[hsh];
|
||||
if (e == null) return default(T);
|
||||
foreach (var f in e)
|
||||
|
|
|
@ -198,7 +198,7 @@ namespace FFXIVClassic.Common
|
|||
// *** Open the original file ***
|
||||
sr = new StreamReader(m_FileName);
|
||||
|
||||
// *** Read the file original content, replace changes with local cache values ***
|
||||
// *** Read the file original content, replace Changes with local cache values ***
|
||||
string s;
|
||||
string SectionName;
|
||||
string Key = null;
|
||||
|
@ -379,7 +379,7 @@ namespace FFXIVClassic.Common
|
|||
Dictionary<string, string> Section;
|
||||
if (!m_Sections.TryGetValue(SectionName, out Section))
|
||||
{
|
||||
// *** If it doesn't, add it ***
|
||||
// *** If it Doesn't, Add it ***
|
||||
Section = new Dictionary<string, string>();
|
||||
m_Sections.Add(SectionName,Section);
|
||||
}
|
||||
|
@ -473,7 +473,7 @@ namespace FFXIVClassic.Common
|
|||
return DefaultValue;
|
||||
}
|
||||
|
||||
internal double GetValue(string SectionName, string Key, double DefaultValue)
|
||||
internal Double GetValue(string SectionName, string Key, Double DefaultValue)
|
||||
{
|
||||
string StringValue = GetValue(SectionName, Key, DefaultValue.ToString(CultureInfo.InvariantCulture));
|
||||
double Value;
|
||||
|
@ -518,7 +518,7 @@ namespace FFXIVClassic.Common
|
|||
SetValue(SectionName, Key, Value.ToString(CultureInfo.InvariantCulture));
|
||||
}
|
||||
|
||||
internal void SetValue(string SectionName, string Key, double Value)
|
||||
internal void SetValue(string SectionName, string Key, Double Value)
|
||||
{
|
||||
SetValue(SectionName, Key, Value.ToString(CultureInfo.InvariantCulture));
|
||||
}
|
||||
|
|
|
@ -107,7 +107,7 @@ namespace FFXIVClassic.Common
|
|||
return unixTimeStamp;
|
||||
}
|
||||
|
||||
public static ulong swapEndian(ulong input)
|
||||
public static ulong SwapEndian(ulong input)
|
||||
{
|
||||
return ((0x00000000000000FF) & (input >> 56) |
|
||||
(0x000000000000FF00) & (input >> 40) |
|
||||
|
@ -119,7 +119,7 @@ namespace FFXIVClassic.Common
|
|||
(0xFF00000000000000) & (input << 56));
|
||||
}
|
||||
|
||||
public static uint swapEndian(uint input)
|
||||
public static uint SwapEndian(uint input)
|
||||
{
|
||||
return ((input >> 24) & 0xff) |
|
||||
((input << 8) & 0xff0000) |
|
||||
|
@ -127,7 +127,7 @@ namespace FFXIVClassic.Common
|
|||
((input << 24) & 0xff000000);
|
||||
}
|
||||
|
||||
public static int swapEndian(int input)
|
||||
public static int SwapEndian(int input)
|
||||
{
|
||||
uint inputAsUint = (uint)input;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue