BitExpGetInt Method

Create expression that returns integer from byte[] bin starting at bitOffset for bitSize. Signed indicates if bits should be treated as a signed number.
  • bin = [0b00000001, 0b01000010, 0b00000011, 0b00000100, 0b00000101]
  • bitOffset = 8
  • bitSize = 16
  • signed = false
  • returns 16899

Definition

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

Parameters

bitOffset  Exp
 
bitSize  Exp
 
signed  Boolean
 
bin  Exp
 

Return Value

Exp

Example

C#
// getInt(a) == 16899
Exp.EQ(BitExp.GetInt(Exp.Val(8), Exp.Val(16), false, Exp.BlobBin("a")), Exp.Val(16899))

See Also