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:
Namespace: Aerospike.Client- bin = [0b00000001, 0b01000010, 0b00000011, 0b00000100, 0b00000101]
- bitOffset = 24
- bitSize = 16
- value = 128
- signed = false
- bin result = [0b00000001, 0b01000010, 0b00000011, 0b0000011, 0b10000101]
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 4.0.0.0 (4.0.0)
Syntax
Parameters
- policy
- Type: Aerospike.Client BitPolicy
- binName
- Type: System String
- bitOffset
- Type: System Int32
- bitSize
- Type: System Int32
- value
- Type: System Int64
- signed
- Type: System Boolean
- action
- Type: Aerospike.Client BitOverflowAction
See Also