BitExpLscan Method

Aerospike
Create expression that returns integer bit offset of the first specified value bit in byte[] bin starting at bitOffset for bitSize.
  • bin = [0b00000001, 0b01000010, 0b00000011, 0b00000100, 0b00000101]
  • bitOffset = 24
  • bitSize = 8
  • value = true
  • returns 5

Namespace:  Aerospike.Client
Assembly:  AerospikeClient (in AerospikeClient.dll) Version: 5.1.1.0 (5.1.1)
Syntax

C#
public static Exp Lscan(
	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: Exp
Examples

// lscan(a) == 5
Exp.EQ(BitExp.Lscan(Exp.Val(24), Exp.Val(8), Exp.Val(true), Exp.BlobBin("a")), Exp.Val(5))
See Also

Reference