Create expression that sets value on byte[] bin at bitOffset for bitSize and returns byte[].
Namespace: Aerospike.Client- bin = [0b00000001, 0b01000010, 0b00000011, 0b00000100, 0b00000101]
- bitOffset = 13
- bitSize = 3
- value = [0b11100000]
- bin result = [0b00000001, 0b01000111, 0b00000011, 0b00000100, 0b00000101]
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 4.0.0.0 (4.0.0)
Syntax
Parameters
- policy
- Type: Aerospike.Client BitPolicy
- bitOffset
- Type: Aerospike.Client Exp
- bitSize
- Type: Aerospike.Client Exp
- value
- Type: Aerospike.Client Exp
- bin
- Type: Aerospike.Client Exp
Examples
// Set bytes in bin "a" and compare bit count Exp.EQ( BitExp.Count(Exp.Val(0), Exp.Val(3), BitExp.Set(BitPolicy.Default, Exp.Val(13), Exp.Val(3), Exp.Val(bytes), Exp.BlobBin("a"))), Exp.Val(2))
See Also