BitExpRscan Method

Create expression that returns integer bit offset of the last specified value bit in byte[] bin starting at bitOffset for bitSize. Example:
  • bin = [0b00000001, 0b01000010, 0b00000011, 0b00000100, 0b00000101]
  • bitOffset = 32
  • bitSize = 8
  • value = true
  • returns 7

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public static Exp Rscan(
	Exp bitOffset,
	Exp bitSize,
	Exp value,
	Exp bin
)

Parameters

bitOffset  Exp
offset int expression
bitSize  Exp
size int expression
value  Exp
boolean expression
bin  Exp
bin or blob value expression

Return Value

Exp

Example

C#
// rscan(a) == 7
Exp.EQ(BitExp.Rscan(Exp.Val(32), Exp.Val(8), Exp.Val(true), Exp.BlobBin("a")), Exp.Val(7))

See Also