Parameters:
|
variable reference – The reference to the BLOB variable containing the buffer. For example, 'A'VAR
position – A number defining the position of the byte in the BLOB variable.
bit number – A value from 1 to 8 representing a bit number in the byte.
|
Examples:
|
BufSetNum('A'VAR,1,3,2,1) sets the binary value of the first byte to 00000011 by using the default low-hi conversion parameter.
BufGetBit('A'VAR,1,1) returns False
BufGetBit('A'VAR,1,7) returns True
BufGetBit('A'VAR,1,8) returns True
|