Expert: Returns prefix coded bits after reducing the precision by
CopyC#
shift
bits. This is method is used by {@link NumericTokenStream}.

Namespace: Lucene.Net.Util
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public static int IntToPrefixCoded(
	int val,
	int shift,
	char[] buffer
)
Visual Basic
Public Shared Function IntToPrefixCoded ( _
	val As Integer, _
	shift As Integer, _
	buffer As Char() _
) As Integer
Visual C++
public:
static int IntToPrefixCoded(
	int val, 
	int shift, 
	array<wchar_t>^ buffer
)

Parameters

val
Type: System..::..Int32
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_INT} length

Return Value

number of chars written to buffer

See Also