Blob.Shift

Parent Previous Next

Blob.Shift.

Shifts the bits to the left or right - handling each byte in the blob individually.


Syntax.


 Shift(Integer bitsLeft) : Blob

 


Arguments:


Warning: This function does not transfer bits from one byte to another. Instead take a look at Blob.Rotate.


Example:


 Blob A := 0xFFFF, B := A;

 A.Shift(1);  //Now A == 0xFEFE;

 B.Shift(-1); //Now B == 0x7F7F;