Thread: Start of my 503 Refactoring

Results 1 to 7 of 7
  1. #1 Start of my 503 Refactoring 
    Highclass Donator
    henry's Avatar
    Join Date
    Jul 2006
    Posts
    438
    Thanks given
    0
    Thanks received
    3
    Rep Power
    4
    Ok well so far I've just started with the Stream class today. I brought it down to 3/4th its original size lol. Ok basically what I did was removed all of the dummy values and arguments (useless crap lol), and renamed just about every method in the class. Here is almost every read and write method from the client end .

    Code:
    Methods:
    Stream.method301(bInt, bInt) - doKeys
    //Writing
    Stream.method281(int) - writeSignedWordBigEndianA
    Stream.method282(int) - writeSigned3Byte
    Stream.method286(int) - writeSignedByte
    Stream.method295(int, int, byte[]) - writeBytes
    Stream.method296(int) - writeRSStringLength
    Stream.method299(int) - writeSignedByteC
    Stream.method307(long) - writeQWord
    Stream.method310(int) - writeSignedWordBigEndian
    Stream.method311(int) - writeSignedByteA
    Stream.method317(int) - writeSignedWordA
    Stream.method328(int) - writeSignedWord
    Stream.method329(int) - writeSignedDWord
    Stream.method331(RSString, int) - writeString
    Stream.method334(int) - writeSignedDWordBigEndian
    Stream.method337(int) - writePacketSize
    //Reading
    Stream.method284() - readUnsignedByteC
    Stream.method287() - readSignedWordBigEndianA
    Stream.method292() - readUnsignedByteS
    Stream.method298() - readSignedByteC
    Stream.method304() - readUnsignedWordBigEndian
    Stream.method306() - readSignedByteS
    Stream.method308() - readUnsignedByteA
    Stream.method312() - readQWord
    Stream.method313() - readBytes
    Stream.method314() - readUnsignedByte
    Stream.method315() - readUnsignedWordA
    Stream.method321() - readSignedByteA
    Stream.method323() - readSignedByte
    Stream.method326() - readUnsignedWord
    Stream.method330() - readUnsignedWordBigEndianA
    Stream.method338() - readSignedWord
    Stream.method340() - readBytes_reverse
    I don't think anybody has released a list this big yet for them, so here you guys go . I don't care about credits, you don't need to give them to me, just don't go saying you are the one that found them.

    Your write methods might not have the word Signed in them, because there is no Unsigned methods, I just have them in mine because I like the look .

    Side note: I use IntelliJ IDEA, its easy to use and especially useful in doing refactoring .

    If anybody knows a good site where you can simplify Hex codes please let me know, I figured out some of them but some of these massive ones, -341089360 or -0x14549c50, are a fucking dozy :/.
    Ex-Rune-Server Mod
    Ex-Vet (wtf?) (c)
    Reply With Quote  
     

  2. #2  
    Valar Morghulis

    Laxika's Avatar
    Join Date
    Sep 2006
    Age
    32
    Posts
    2,813
    Thanks given
    1,804
    Thanks received
    274
    Rep Power
    2128
    Lol nice relese Henry! Ty this!
    Reply With Quote  
     

  3. #3  
    Freak0ut
    Guest
    Thanks alot Henry!
    Reply With Quote  
     

  4. #4  
    Simplicity✔
    Guest
    I could careless about refactoring. Good job though.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jun 2007
    Posts
    276
    Thanks given
    0
    Thanks received
    2
    Rep Power
    14
    ! You better release this!!!
    Reply With Quote  
     

  6. #6  
    ( ͡° ͜ʖ ͡°)
    Edgeville's Avatar
    Join Date
    Nov 2007
    Posts
    2,453
    Thanks given
    80
    Thanks received
    428
    Rep Power
    2589
    Nice mts
    Reply With Quote  
     

  7. #7  
    Highclass Donator
    henry's Avatar
    Join Date
    Jul 2006
    Posts
    438
    Thanks given
    0
    Thanks received
    3
    Rep Power
    4
    No problem . I enjoyed doing it, even though just this small amount (which was quite easy) took a little bit of time :/.
    Ex-Rune-Server Mod
    Ex-Vet (wtf?) (c)
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •