The BitOperation type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() ![]() | Add |
Create bit "add" operation.
Server adds value to byte[] bin starting at bitOffset for bitSize. BitSize must be <= 64.
Signed indicates if bits should be treated as a signed number.
If add overflows/underflows, is used.
Server does not return a value.
Example:
|
![]() ![]() | And |
Create bit "and" operation.
Server performs bitwise "and" on value and byte[] bin at bitOffset for bitSize.
Server does not return a value.
Example:
|
![]() ![]() | Count |
Create bit "count" operation.
Server returns integer count of set bits from byte[] bin starting at bitOffset for bitSize.
Example:
|
![]() ![]() | Get |
Create bit "get" operation.
Server returns bits from byte[] bin starting at bitOffset for bitSize.
Example:
|
![]() ![]() | GetInt |
Create bit "get integer" operation.
Server returns integer from byte[] bin starting at bitOffset for bitSize.
Signed indicates if bits should be treated as a signed number.
Example:
|
![]() ![]() | Insert |
Create byte "insert" operation.
Server inserts value bytes into byte[] bin at byteOffset.
Server does not return a value.
Example:
|
![]() ![]() | Lscan |
Create bit "left scan" operation.
Server returns integer bit offset of the first specified value bit in byte[] bin
starting at bitOffset for bitSize.
Example:
|
![]() ![]() | Lshift |
Create bit "left shift" operation.
Server shifts left byte[] bin starting at bitOffset for bitSize.
Server does not return a value.
Example:
|
![]() ![]() | Not |
Create bit "not" operation.
Server negates byte[] bin starting at bitOffset for bitSize.
Server does not return a value.
Example:
|
![]() ![]() | Or |
Create bit "or" operation.
Server performs bitwise "or" on value and byte[] bin at bitOffset for bitSize.
Server does not return a value.
Example:
|
![]() ![]() | Remove |
Create byte "remove" operation.
Server removes bytes from byte[] bin at byteOffset for byteSize.
Server does not return a value.
Example:
|
![]() ![]() | Resize |
Create byte "resize" operation.
Server resizes byte[] to byteSize according to resizeFlags.
Server does not return a value.
Example:
|
![]() ![]() | Rscan |
Create bit "right scan" operation.
Server returns integer bit offset of the last specified value bit in byte[] bin
starting at bitOffset for bitSize.
Example:
|
![]() ![]() | Rshift |
Create bit "right shift" operation.
Server shifts right byte[] bin starting at bitOffset for bitSize.
Server does not return a value.
Example:
|
![]() ![]() | Set |
Create bit "set" operation.
Server sets value on byte[] bin at bitOffset for bitSize.
Server does not return a value.
Example:
|
![]() ![]() | SetInt |
Create bit "setInt" operation.
Server sets value to byte[] bin starting at bitOffset for bitSize. Size must be <= 64.
Server does not return a value.
Example:
|
![]() ![]() | Subtract |
Create bit "subtract" operation.
Server subtracts value from byte[] bin starting at bitOffset for bitSize. BitSize must be <= 64.
Signed indicates if bits should be treated as a signed number.
If add overflows/underflows, is used.
Server does not return a value.
Example:
|
![]() ![]() | Xor |
Create bit "exclusive or" operation.
Server performs bitwise "xor" on value and byte[] bin at bitOffset for bitSize.
Server does not return a value.
Example:
|
See Also