帮我解释一下这2个函数的意思,谢谢了,
function TurnBitOn (Value: Integer; Bit: Byte): Integer;
begin
Result := Value and (1 shl Bit);
end;function TurnBitOff (Value: Integer; Bit: Byte): Integer;
begin
Result := Value and not (1 shl Bit);
end;
function TurnBitOn (Value: Integer; Bit: Byte): Integer;
begin
Result := Value and (1 shl Bit);
end;function TurnBitOff (Value: Integer; Bit: Byte): Integer;
begin
Result := Value and not (1 shl Bit);
end;
TurnBitOff: 将Value这个Integer类型整数的第Bit位置为0