|
|
المشاركات 203 |
+التقييم 0.12 |
تاريخ التسجيل Feb 2020 |
الاقامة |
نظام التشغيل |
رقم العضوية 3471 |
BitConverter
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Rayzo
{
public unsafe class BitConverter
{
public static ulong ToUInt64(byte[] buffer, int offset)
{
if (offset > buffer.Length - 8) return 0;
fixed (byte* Buffer = buffer)
{
return *((ulong*)(Buffer + offset));
}
}
public static Boolean ToBoolean(byte[] buffer, int offset)
{
if (offset > buffer.Length - 4) return false;
fixed (byte* Buffer = buffer)
{
return *((Boolean*)(Buffer + offset));
}
}
public static uint ToUInt32(byte[] buffer, int offset)
{
if (offset > buffer.Length - 4) return 0;
fixed (byte* Buffer = buffer)
{
return *((uint*)(Buffer + offset));
}
}
public static int ToInt32(byte[] buffer, int offset)
{
if (offset > buffer.Length - 4) return 0;
fixed (byte* Buffer = buffer)
{
return *((int*)(Buffer + offset));
}
}
public static ushort ToUInt16(byte[] buffer, int offset)
{
if (offset > buffer.Length - 2) return 0;
fixed (byte* Buffer = buffer)
{
return *((ushort*)(Buffer + offset));
}
}
public static short ToInt16(byte[] buffer, int offset)
{
if (offset > buffer.Length - 2) return 0;
fixed (byte* Buffer = buffer)
{
return *((short*)(Buffer + offset));
}
}
public static ulong ReadUlong(byte[] buffer, int offset)
{
fixed (byte* Buffer = buffer)
{
return *((ulong*)(Buffer + offset));
}
}
public static uint ReadUint(byte[] buffer, int offset)
{
fixed (byte* Buffer = buffer)
{
return *((uint*)(Buffer + offset));
}
}
public static ushort ReadUshort(byte[] buffer, int offset)
{
fixed (byte* Buffer = buffer)
{
return *((ushort*)(Buffer + offset));
}
}
}
}
BitConverter
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Rayzo
{
public unsafe class BitConverter
{
public static ulong ToUInt64(byte[] buffer, int offset)
{
if (offset > buffer.Length - 8) return 0;
fixed (byte* Buffer = buffer)
{
return *((ulong*)(Buffer + offset));
}
}
public static Boolean ToBoolean(byte[] buffer, int offset)
{
if (offset > buffer.Length - 4) return false;
fixed (byte* Buffer = buffer)
{
return *((Boolean*)(Buffer + offset));
}
}
public static uint ToUInt32(byte[] buffer, int offset)
{
if (offset > buffer.Length - 4) return 0;
fixed (byte* Buffer = buffer)
{
return *((uint*)(Buffer + offset));
}
}
public static int ToInt32(byte[] buffer, int offset)
{
if (offset > buffer.Length - 4) return 0;
fixed (byte* Buffer = buffer)
{
return *((int*)(Buffer + offset));
}
}
public static ushort ToUInt16(byte[] buffer, int offset)
{
if (offset > buffer.Length - 2) return 0;
fixed (byte* Buffer = buffer)
{
return *((ushort*)(Buffer + offset));
}
}
public static short ToInt16(byte[] buffer, int offset)
{
if (offset > buffer.Length - 2) return 0;
fixed (byte* Buffer = buffer)
{
return *((short*)(Buffer + offset));
}
}
public static ulong ReadUlong(byte[] buffer, int offset)
{
fixed (byte* Buffer = buffer)
{
return *((ulong*)(Buffer + offset));
}
}
public static uint ReadUint(byte[] buffer, int offset)
{
fixed (byte* Buffer = buffer)
{
return *((uint*)(Buffer + offset));
}
}
public static ushort ReadUshort(byte[] buffer, int offset)
{
fixed (byte* Buffer = buffer)
{
return *((ushort*)(Buffer + offset));
}
}
}
}
BitConverter
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Rayzo
{
public unsafe class BitConverter
{
public static ulong ToUInt64(byte[] buffer, int offset)
{
if (offset > buffer.Length - 8) return 0;
fixed (byte* Buffer = buffer)
{
return *((ulong*)(Buffer + offset));
}
}
public static Boolean ToBoolean(byte[] buffer, int offset)
{
if (offset > buffer.Length - 4) return false;
fixed (byte* Buffer = buffer)
{
return *((Boolean*)(Buffer + offset));
}
}
public static uint ToUInt32(byte[] buffer, int offset)
{
if (offset > buffer.Length - 4) return 0;
fixed (byte* Buffer = buffer)
{
return *((uint*)(Buffer + offset));
}
}
public static int ToInt32(byte[] buffer, int offset)
{
if (offset > buffer.Length - 4) return 0;
fixed (byte* Buffer = buffer)
{
return *((int*)(Buffer + offset));
}
}
public static ushort ToUInt16(byte[] buffer, int offset)
{
if (offset > buffer.Length - 2) return 0;
fixed (byte* Buffer = buffer)
{
return *((ushort*)(Buffer + offset));
}
}
public static short ToInt16(byte[] buffer, int offset)
{
if (offset > buffer.Length - 2) return 0;
fixed (byte* Buffer = buffer)
{
return *((short*)(Buffer + offset));
}
}
public static ulong ReadUlong(byte[] buffer, int offset)
{
fixed (byte* Buffer = buffer)
{
return *((ulong*)(Buffer + offset));
}
}
public static uint ReadUint(byte[] buffer, int offset)
{
fixed (byte* Buffer = buffer)
{
return *((uint*)(Buffer + offset));
}
}
public static ushort ReadUshort(byte[] buffer, int offset)
{
fixed (byte* Buffer = buffer)
{
return *((ushort*)(Buffer + offset));
}
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Rayzo
{
public unsafe class BitConverter
{
public static ulong ToUInt64(byte[] buffer, int offset)
{
if (offset > buffer.Length - 8) return 0;
fixed (byte* Buffer = buffer)
{
return *((ulong*)(Buffer + offset));
}
}
public static Boolean ToBoolean(byte[] buffer, int offset)
{
if (offset > buffer.Length - 4) return false;
fixed (byte* Buffer = buffer)
{
return *((Boolean*)(Buffer + offset));
}
}
public static uint ToUInt32(byte[] buffer, int offset)
{
if (offset > buffer.Length - 4) return 0;
fixed (byte* Buffer = buffer)
{
return *((uint*)(Buffer + offset));
}
}
public static int ToInt32(byte[] buffer, int offset)
{
if (offset > buffer.Length - 4) return 0;
fixed (byte* Buffer = buffer)
{
return *((int*)(Buffer + offset));
}
}
public static ushort ToUInt16(byte[] buffer, int offset)
{
if (offset > buffer.Length - 2) return 0;
fixed (byte* Buffer = buffer)
{
return *((ushort*)(Buffer + offset));
}
}
public static short ToInt16(byte[] buffer, int offset)
{
if (offset > buffer.Length - 2) return 0;
fixed (byte* Buffer = buffer)
{
return *((short*)(Buffer + offset));
}
}
public static ulong ReadUlong(byte[] buffer, int offset)
{
fixed (byte* Buffer = buffer)
{
return *((ulong*)(Buffer + offset));
}
}
public static uint ReadUint(byte[] buffer, int offset)
{
fixed (byte* Buffer = buffer)
{
return *((uint*)(Buffer + offset));
}
}
public static ushort ReadUshort(byte[] buffer, int offset)
{
fixed (byte* Buffer = buffer)
{
return *((ushort*)(Buffer + offset));
}
}
}
}
|
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
ضرورى و النبي بخصوص الرنك سورس rayz | megokarika | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2020-02-20 12:35 AM |
طلب ان بي سي لسيرفر rayz v2 اسطف بالشخصية الجديد +7 او +5 مفهاش صول | megokarika | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2020-02-19 03:16 PM |
فجأه السوكت ضرب سورس Rayz 3.0 | megokarika | مشكلات السيرفيرات كونكر الشخصيه | 7 | 2020-02-18 11:03 PM |
بوابات الجليد وير | MRonlineGvrix | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2020-02-17 02:44 AM |
مشكله فى باب الجليد وار | taha | مشكلات السيرفيرات كونكر الشخصيه | 6 | 2019-12-12 09:32 AM |