BitExpSubtract Method

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]

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public static Exp Subtract(
	BitPolicy policy,
	Exp bitOffset,
	Exp bitSize,
	Exp value,
	bool signed,
	BitOverflowAction action,
	Exp bin
)

Parameters

policy  BitPolicy
 
bitOffset  Exp
 
bitSize  Exp
 
value  Exp
 
signed  Boolean
 
action  BitOverflowAction
 
bin  Exp
 

Return Value

Exp

See Also