[Exclusive]Fixed Source 5165 reed D:\OldCODB Rather than C:\OldCODB and more

12/06/2010 10:29 Syst3m_W1z4rd#46
Quote:
Originally Posted by Bogdan51 View Post
This ie my source
Man I feel sorry for u, because u aren't the creator.

If you really made it, explain this please:
Code:
    public unsafe class COPacket
    {
        byte[] PData;
        public ushort PType;
        int Count;

        public byte* Ptr
        {
            get
            {
                fixed (byte* p = PData)
                    return p;
            }
        }

        public byte[] Get
        {
            get
            {
                return PData;
            }
        }
        public ushort InLength
        {
            get
            {
                return *((ushort*)(Ptr));
            }
        }
        public ushort Type
        {
            get
            {
                return *((ushort*)(Ptr + 2));
            }
        }
        public unsafe COPacket(byte[] Data)
        {
            Count = 0;
            PData = Data;
        }
        public unsafe void WriteByte(byte val)
        {
            *((byte*)(Ptr + Count)) = val;
            Count++;
        }
        public unsafe void WriteInt16(ushort val)
        {
            *((ushort*)(Ptr + Count)) = val;
            Count += 2;
        }
        public unsafe void WriteInt32(uint val)
        {
            *((uint*)(Ptr + Count)) = val;
            Count += 4;
        }
        public unsafe void WriteInt64(ulong val)
        {
            *((ulong*)(Ptr + Count)) = val;
            Count += 8;
        }
        public unsafe void WriteString(string val)
        {
            for (int i = 0; i < val.Length; i++)
            {
                try
                {
                    *((byte*)(Ptr + Count)) = Convert.ToByte(val[i]);
                }
                catch { }//For weird letters that cannot be converted into byte...
                Count++;
            }
        }
        public unsafe void WriteString(string val, int MaxLength)
        {
            if (val.Length <= MaxLength)
                for (int i = 0; i < val.Length; i++)
                {
                    *((byte*)(Ptr + Count)) = Convert.ToByte(val[i]);
                    Count++;
                }
            else
                for (int i = 0; i < MaxLength; i++)
                {
                    *((byte*)(Ptr + Count)) = Convert.ToByte(val[i]);
                    Count++;
                }
        }
        public unsafe void WriteBytes(byte[] val)
        {
            for (int i = 0; i < val.Length; i++)
            {
                *((byte*)(Ptr + Count)) = val[i];
                Count++;
            }
        }
        public void Move(int count)
        {
            Count += count;
        }
    }
12/06/2010 11:43 †he Knight#47
Quote:
Originally Posted by 1337 H4X0R View Post
Man I feel sorry for u, because u aren't the creator.

If you really made it, explain this please:
Code:
    public unsafe class COPacket
    {
        byte[] PData;
        public ushort PType;
        int Count;

        public byte* Ptr
        {
            get
            {
                fixed (byte* p = PData)
                    return p;
            }
        }

        public byte[] Get
        {
            get
            {
                return PData;
            }
        }
        public ushort InLength
        {
            get
            {
                return *((ushort*)(Ptr));
            }
        }
        public ushort Type
        {
            get
            {
                return *((ushort*)(Ptr + 2));
            }
        }
        public unsafe COPacket(byte[] Data)
        {
            Count = 0;
            PData = Data;
        }
        public unsafe void WriteByte(byte val)
        {
            *((byte*)(Ptr + Count)) = val;
            Count++;
        }
        public unsafe void WriteInt16(ushort val)
        {
            *((ushort*)(Ptr + Count)) = val;
            Count += 2;
        }
        public unsafe void WriteInt32(uint val)
        {
            *((uint*)(Ptr + Count)) = val;
            Count += 4;
        }
        public unsafe void WriteInt64(ulong val)
        {
            *((ulong*)(Ptr + Count)) = val;
            Count += 8;
        }
        public unsafe void WriteString(string val)
        {
            for (int i = 0; i < val.Length; i++)
            {
                try
                {
                    *((byte*)(Ptr + Count)) = Convert.ToByte(val[i]);
                }
                catch { }//For weird letters that cannot be converted into byte...
                Count++;
            }
        }
        public unsafe void WriteString(string val, int MaxLength)
        {
            if (val.Length <= MaxLength)
                for (int i = 0; i < val.Length; i++)
                {
                    *((byte*)(Ptr + Count)) = Convert.ToByte(val[i]);
                    Count++;
                }
            else
                for (int i = 0; i < MaxLength; i++)
                {
                    *((byte*)(Ptr + Count)) = Convert.ToByte(val[i]);
                    Count++;
                }
        }
        public unsafe void WriteBytes(byte[] val)
        {
            for (int i = 0; i < val.Length; i++)
            {
                *((byte*)(Ptr + Count)) = val[i];
                Count++;
            }
        }
        public void Move(int count)
        {
            Count += count;
        }
    }
It Isn't his, Zeko's either,, And You know which is it.. Why Do you even bother with this shit,, let this thread die. *It's Useless*
12/07/2010 15:08 janvier123#48
Reportet at 12.07.2010 - 3:09 PM
-multiple post (please use the "Edit-Button")
Quote:
doubleposting, or pushing up really old topics is not allowed and ends up in an infraction / a warning
Please read the [Only registered and activated users can see links. Click Here To Register...]
12/07/2010 17:39 Basser#49
Ownership of these sources isn't something we should discuss on this particular thread (nor anywhere else @ epvp - imo)