BitExpSubtract Method

Aerospike
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.
  • bin = [0b00000001, 0b01000010, 0b00000011, 0b00000100, 0b00000101]
  • bitOffset = 24
  • bitSize = 16
  • value = 128
  • signed = false
  • bin result = [0b00000001, 0b01000010, 0b00000011, 0b0000011, 0b10000101]

Namespace:  Aerospike.Client
Assembly:  AerospikeClient (in AerospikeClient.dll) Version: 5.1.1.0 (5.1.1)
Syntax

C#
public static Exp Subtract(
	BitPolicy policy,
	Exp bitOffset,
	Exp bitSize,
	Exp value,
	bool signed,
	BitOverflowAction action,
	Exp bin
)

Parameters

policy
Type: Aerospike.ClientBitPolicy
bitOffset
Type: Aerospike.ClientExp
bitSize
Type: Aerospike.ClientExp
value
Type: Aerospike.ClientExp
signed
Type: SystemBoolean
action
Type: Aerospike.ClientBitOverflowAction
bin
Type: Aerospike.ClientExp

Return Value

Type: Exp
See Also

Reference