BitOperationAdd Method

Aerospike
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]

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

C#
public static Operation Add(
	BitPolicy policy,
	string binName,
	int bitOffset,
	int bitSize,
	long value,
	bool signed,
	BitOverflowAction action
)

Parameters

policy
Type: Aerospike.ClientBitPolicy
binName
Type: SystemString
bitOffset
Type: SystemInt32
bitSize
Type: SystemInt32
value
Type: SystemInt64
signed
Type: SystemBoolean
action
Type: Aerospike.ClientBitOverflowAction

Return Value

Type: Operation
See Also

Reference