This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ==== GetBit ==== Helper function to read the state of a single bit in a byte-buffer. === Description === <code>GetBit( buffer, bitno )</code> Get the state of a single bit in a buffer === Parameters === | ''buf'' | Reference to the byte buffer | | ''bitno'' | The bit number (0-indexed) | === Return value === Returns the state of the bit (1 or 0) === Example usage === <code javascript> new buffer{80}; new b; // assuming the buffer is filled with data b = GetBit(buffer, 18); // b is the status of the 19th bit in the buffer </code> ezeio2/scriptref/getbit.txt Last modified: 2020-08-14 20:40by andreh Log In