Jump to content


Photo

Bit Wizard


  • Please log in to reply
2 replies to this topic

#1 Black Doomer

Black Doomer

    GMC Member

  • GMC Member
  • 105 posts
  • Version:GM8.1

Posted 12 May 2013 - 04:45 AM

Bit Wizard

 

This small but fast and powerful extension provides you some bit manipulation functions.

Features:

  1. Getting state of the specified bit from some integer value.
  2. Setting some bit to the specified state in some integer value.
  3. Building bytes from specified bits states.

I recommend to use this, for example, in networking protocols when you send some True \ False states of something.

But keep in mind that some networking extentions (e.g. Faucet Networking aka FaucetNET) have their own bit manupulation functions.

 

Download:

http://www.mediafire...wao5kx7ww1jzdn6 (~4 Kb; .ZIP)


Edited by Black Doomer, 12 May 2013 - 07:54 AM.

  • 1

And sorry for my bad English.

My projects: Doom 2D Multiplayer

My extensions: Codepage Converter | XP Messages | Bit Wizard | Time Library

Other: Download Manager 2 GEX


#2 Black Doomer

Black Doomer

    GMC Member

  • GMC Member
  • 105 posts
  • Version:GM8.1

Posted 05 October 2013 - 03:46 AM

Uploaded a new version. Extension size was slightly reduced.


  • 0

And sorry for my bad English.

My projects: Doom 2D Multiplayer

My extensions: Codepage Converter | XP Messages | Bit Wizard | Time Library

Other: Download Manager 2 GEX


#3 Black Doomer

Black Doomer

    GMC Member

  • GMC Member
  • 105 posts
  • Version:GM8.1

Posted 03 January 2014 - 12:51 PM

New version has been released (if anyone cares, lol). Now bit_get() function returns TRUE (i.e. 1) instead of -1, if specified bit state is 1.


  • 0

And sorry for my bad English.

My projects: Doom 2D Multiplayer

My extensions: Codepage Converter | XP Messages | Bit Wizard | Time Library

Other: Download Manager 2 GEX