BitOperationAdd Method

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

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public static Operation Add(
	BitPolicy policy,
	string binName,
	int bitOffset,
	int bitSize,
	long value,
	bool signed,
	BitOverflowAction action
)

Parameters

policy  BitPolicy
 
binName  String
 
bitOffset  Int32
 
bitSize  Int32
 
value  Int64
 
signed  Boolean
 
action  BitOverflowAction
 

Return Value

Operation

See Also