The bin expression argument in these methods can be a reference to a bin or the result of another expression. Expressions that modify bin values are only used for temporary expression evaluation and are not permanently applied to the bin. Bit modify expressions return the blob bin's value.
Offset orientation is left-to-right. Negative offsets are supported. If the offset is negative, the offset starts backwards from end of the bitmap. If an offset is out of bounds, a parameter error will be returned.
public sealed class BitExp
BitExp | Initializes a new instance of the BitExp class |
Add |
Create expression that adds value to byte[] bin starting at bitOffset for bitSize and returns byte[].
BitSize must be <= 64. Signed indicates if bits should be treated as a signed number.
If add overflows/underflows, BitOverflowAction is used.
|
And |
Create expression that performs bitwise "and" on value and byte[] bin at bitOffset for bitSize
and returns byte[].
|
Count |
Create expression that returns integer count of set bits from byte[] bin starting at
bitOffset for bitSize.
|
Get |
Create expression that returns bits from byte[] bin starting at bitOffset for bitSize.
|
GetInt |
Create expression that returns integer from byte[] bin starting at bitOffset for bitSize.
Signed indicates if bits should be treated as a signed number.
|
Insert |
Create expression that inserts value bytes into byte[] bin at byteOffset and returns byte[].
|
Lscan |
Create expression that returns integer bit offset of the first specified value bit in byte[] bin
starting at bitOffset for bitSize.
|
Lshift |
Create expression that shifts left byte[] bin starting at bitOffset for bitSize and returns byte[].
|
Not |
Create expression that negates byte[] bin starting at bitOffset for bitSize and returns byte[].
|
Or |
Create expression that performs bitwise "or" on value and byte[] bin at bitOffset for bitSize
and returns byte[].
|
Remove |
Create expression that removes bytes from byte[] bin at byteOffset for byteSize and returns byte[].
|
Resize |
Create expression that resizes byte[] to byteSize according to resizeFlags (See BitResizeFlags)
and returns byte[].
|
Rscan |
Create expression that returns integer bit offset of the last specified value bit in byte[] bin
starting at bitOffset for bitSize.
Example:
|
Rshift |
Create expression that shifts right byte[] bin starting at bitOffset for bitSize and returns byte[].
|
Set |
Create expression that sets value on byte[] bin at bitOffset for bitSize and returns byte[].
|
SetInt |
Create expression that sets value to byte[] bin starting at bitOffset for bitSize and returns byte[].
BitSize must be <= 64.
|
Subtract |
Create expression that subtracts value from byte[] bin starting at bitOffset for bitSize and returns byte[].
BitSize must be <= 64. Signed indicates if bits should be treated as a signed number.
If add overflows/underflows, BitOverflowAction is used.
|
Xor |
Create expression that performs bitwise "xor" on value and byte[] bin at bitOffset for bitSize
and returns byte[].
|