Aide:BitRotate.txt

De Wiki AutoIt Français
Aller à : navigation, rechercher

Document original V3.3.6.1 :

###Function###
BitRotate

###Description###
Performs a bit shifting operation, with rotation.

###Syntax###
BitRotate ( value , shift [, size] )


###Parameters###
@@ParamTable@@
value
	The number to be operate on.
shift
	Number of bits to rotate to the left (negative numbers shift right).  If not given, the default is 1.
size
	[optional] A string that determines the rotation size, the default is (16 bits). See below.
@@End@@
<br>
Size parameter :
@@ParamTable@@
"B"
	rotate bits within the low-order byte (8 bits).
"W"
	rotate bits within the low-order word (16 bits).
"D"
	rotate bits within the entire double-word (32 bits).
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	Returns the value rotated by the required number of bits.
Failure:	Set @error if size is invalid
@@End@@
Bit operations are performed as 32-bit integers.


###Remarks###
Remember hex notation can be used for numbers.


###Related###
BitShift, BitAND, BitNOT, BitOR, BitXOR, Hex

###Example###
@@IncludeExample@@


Document traduit V3.3.6.1 :

###Function###
BitRotate

###Description###
Exécute un décalage bit à bit avec rotation. 


###Syntax###
BitRotate ( value , shift [, size] )


###Parameters###
@@ParamTable@@
value
	La valeur à traiter. 
shift
	Nombre de bits à décaler vers la gauche (les nombres négatifs décalent à droite). La valeur par défaut est 1.
size
	[optionnel] Une chaîne de caractères déterminant la taille de la rotation (16 bits par défaut). (voir ci-dessous).
@@End@@
<br>
Paramètre Size :
@@ParamTable@@
"B"
	Rotation à l'intérieur de l'octet de poids faible (8 bits).
"W"
	Rotation à l'intérieur du mot de poids faible (16 bits).
"D"
	Rotation à l'intérieur d'un mot double (32 bits).
@@End@@


###ReturnValue###
@@ReturnTable@@
Succès:	Retourne la valeur de la rotation par le nombre de bits demandés.
Echec:	Assigne @error si la taille est incorrecte.
@@End@@
Les opérations bit à bit sont effectuées comme entiers 32 bits.


###Remarks###
Les notations hexadécimales peuvent être utilisées comme arguments.


###Related###
<a href="BitAND.htm">BitAND</a>, <a href="BitNOT.htm">BitNOT</a>, <a href="BitOR.htm">BitOR</a>, <a href="BitShift.htm">BitShift</a>, <a href="BitXOR.htm">BitXOR</a>, <a href="Hex.htm">Hex</a>


###Example###
@@IncludeExample@@


Traducteur : sylvanie

Contributeurs (pour les modifications avant le Wiki) : jbnh, Tlem