Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void writeVarInt(NetworkStream stream, int paramInt){
- byte[] testThis = BitConverter.GetBytes(paramInt);
- while(true){
- if ((paramInt + 0xFFFFFF80) == 0){
- stream.Write(testThis, 0, 19);
- return;
- }
- stream.Write(testThis + 0x7F | 0x80, 0, 19);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement