BitExp Set Method Aerospike
Create expression that sets value on byte[] bin at bitOffset for bitSize and returns byte[].
  • bin = [0b00000001, 0b01000010, 0b00000011, 0b00000100, 0b00000101]
  • bitOffset = 13
  • bitSize = 3
  • value = [0b11100000]
  • bin result = [0b00000001, 0b01000111, 0b00000011, 0b00000100, 0b00000101]

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 4.1.0.0 (4.1.0)
Syntax

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