Simple packet structure

12/07/2013 17:09 sala7mostafa#1
Hey ,
i was so bored so i made my own packet structure :D

[Only registered and activated users can see links. Click Here To Register...]

i know that it's very bad , but i think it's a good start :D

Example :
Code:
 public class ClassName : PacketStructure
    {
        public ClassName()
            : base(PacketID, PacketLength + 8)
        {
            
        }
    }
12/07/2013 21:15 Xor190#2
Nice .. It'll be a Developing Start Point for You Bro

Keep it up ^_^
12/07/2013 21:35 teroareboss1#3
this is slow
12/07/2013 22:16 sala7mostafa#4
How ? -_-
12/07/2013 22:34 Spirited#5
Quote:
Originally Posted by sala7mostafa View Post
How ? -_-
It uses a few managed classes to do copies and such. I think I wrote one a while ago... the faster way to go about this is to use pointers. Edit: Found it. It's not terribly fast, but it should be a more efficient approach than yours was. Like yours, mine also uses inheritance.
[Only registered and activated users can see links. Click Here To Register...]
12/07/2013 23:00 Y u k i#6
Quote:
Originally Posted by Fang View Post
It uses a few managed classes to do copies and such. I think I wrote one a while ago... the faster way to go about this is to use pointers. Edit: Found it. It's not terribly fast, but it should be a more efficient approach than yours was. Like yours, mine also uses inheritance.
[Only registered and activated users can see links. Click Here To Register...]
Cant wait for the unbalanced stack :3
12/07/2013 23:05 Lateralus#7
Quote:
Originally Posted by Y u k i View Post
Cant wait for the unbalanced stack :3
Unbalanced stack? Shouldn't happen with that implementation. The correct calling convention for those imports is indeed cdecl.
12/07/2013 23:14 sala7mostafa#8
Quote:
Originally Posted by Fang View Post
It uses a few managed classes to do copies and such. I think I wrote one a while ago... the faster way to go about this is to use pointers. Edit: Found it. It's not terribly fast, but it should be a more efficient approach than yours was. Like yours, mine also uses inheritance.
[Only registered and activated users can see links. Click Here To Register...]
I haven't learned pointers yet , i will do another one by pointers when i learn it.
I released it to know the mistakes i did , how to improve my skills on programming.