Create expression that returns bits from byte[] bin starting at bitOffset for bitSize.
- bin = [0b00000001, 0b01000010, 0b00000011, 0b00000100, 0b00000101]
- bitOffset = 9
- bitSize = 5
- returns [0b10000000]
Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 5.1.0.0 (5.1.0)
Syntax
C#
public static Exp Get( Exp bitOffset, Exp bitSize, Exp bin )
Parameters
- bitOffset
- Type: Aerospike.ClientExp
- bitSize
- Type: Aerospike.ClientExp
- bin
- Type: Aerospike.ClientExp
Return Value
Type: ExpExamples
// Bin "a" bits = [0b10000000] Exp.EQ( BitExp.Get(Exp.Val(9), Exp.Val(5), Exp.BlobBin("a")), Exp.Val(new byte[] {(byte)0b10000000}))
See Also