BitExpGetInt Method

Aerospike
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

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

C#
public static Exp GetInt(
	Exp bitOffset,
	Exp bitSize,
	bool signed,
	Exp bin
)

Parameters

bitOffset
Type: Aerospike.ClientExp
bitSize
Type: Aerospike.ClientExp
signed
Type: SystemBoolean
bin
Type: Aerospike.ClientExp

Return Value

Type: Exp
Examples

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

Reference