[Rewease] Netty Encoder/Decoder

Newbie Spellweaver
Joined
Sep 19, 2018
Messages
14
Reaction score
27
This is for versions <92. UwU not the best, but it works better than what is public.
edit:

Added shanda example for clarity. Quick explanation, ByteBuf's that are thrown down the pipeline and reach CryptoEncoder aren't changed. They are copied into the out-buffer and then the out-buffer is encoded/encrypted. This means you don't have to worry about sharing outgoing ByteBuf's to multiple sessions. Meaning, you can broadcast ByteBuf's to every session without any fancy logic.





I didn't include IOBufferManipulator(Shanda). There was no real change to this, as you can just use
Code:
buffer.getByte / buffer.setByte
.
 
Last edited:
wow fank u sir u make me vewy happy boy sowwie but ppl wont get how to use dis
 
Back