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
Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 5.0.0.0 (5.0.0)
Syntax
C#
public static Exp Rscan( Exp bitOffset, Exp bitSize, Exp value, Exp bin )
Parameters
- bitOffset
- Type: Aerospike.ClientExp
offset int expression - bitSize
- Type: Aerospike.ClientExp
size int expression - value
- Type: Aerospike.ClientExp
boolean expression - bin
- Type: Aerospike.ClientExp
bin or blob value expression
Return Value
Type: ExpExamples
// rscan(a) == 7 Exp.EQ(BitExp.Rscan(Exp.Val(32), Exp.Val(8), Exp.Val(true), Exp.BlobBin("a")), Exp.Val(7))
See Also