This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ==== SetBit ==== Helper function to set the state of a single bit in a byte-buffer. === Description === <code>SetBit( buffer, bitno, value )</code> Set the state of a single bit in a buffer === Parameters === | ''buf'' | Reference to the byte buffer | | ''bitno'' | The bit number (0-indexed) | | ''value'' | 0 or 1 (any non-zero value is considered =1) | === Return value === Returns the state of the bit (1 or 0) before it was set. === Example usage === <code javascript> new buffer{80}; SetBit(buffer, 18, 1); </code> ezeio2/scriptref/setbit.txt Last modified: 2020-08-14 20:42by andreh Log In