BitExp.Set Method
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.ClientAssembly: AerospikeClient (in AerospikeClient.dll) Version: 8.0.1+e35566e493546c0887ebb841c8e2a2c6a7cbde18
public static Exp Set(
BitPolicy policy,
Exp bitOffset,
Exp bitSize,
Exp value,
Exp bin
)
- policy BitPolicy
-
- bitOffset Exp
-
- bitSize Exp
-
- value Exp
-
- bin Exp
-
Exp
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))