Expert: Returns prefix coded bits after reducing the precision by bits.
This is method is used by {@link NumericTokenStream}.
Namespace: Lucene.Net.UtilCopyC#
shift
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
public static int LongToPrefixCoded( long val, int shift, char[] buffer ) |
Visual Basic |
---|
Public Shared Function LongToPrefixCoded ( _ val As Long, _ shift As Integer, _ buffer As Char() _ ) As Integer |
Visual C++ |
---|
public: static int LongToPrefixCoded( long long val, int shift, array<wchar_t>^ buffer ) |
Parameters
- val
- Type: System..::..Int64
the numeric value
- shift
- Type: System..::..Int32
how many bits to strip from the right
- buffer
- Type: array<System..::..Char>[]()[][]
that will contain the encoded chars, must be at least of {@link #BUF_SIZE_LONG} length