Npgsql Api Docs

BitString.RShift Method 

Shifts the string operand bits to the right, filling with zeros to produce a string of the same length.

[Visual Basic]
Public Function RShift( _
   ByVal operand As Integer _
) As BitString
[C#]
public BitString RShift(
   int operand
);

Parameters

operand
The number of bits to shift to the right.

Return Value

A right-shifted bitstring.

Remarks

The behaviour of RShift is closer to what one would expect from dealing with PostgreSQL bit-strings than in using the same operations on integers in .NET

In particular, negative operands result in a left-shift, and operands greater than the length of the string will shift it entirely, resulting in a zero-filled string. It also performs a logical shift, rather than an arithmetic shift, so it always sets the vacated bit positions to zero (like PostgreSQL and like .NET for unsigned integers but not for signed integers).

See Also

BitString Class | NpgsqlTypes Namespace