예제 #1
0
 /// <summary>
 /// Decodes a previously encoded <see cref="float"/>.
 /// <para/>
 /// NOTE: This was bytesRefToFloat() in Lucene
 /// </summary>
 public static float BytesRefToSingle(BytesRef b)
 {
     return(J2N.BitConversion.Int32BitsToSingle(Int32AssociationFacetField.BytesRefToInt32(b)));
 }
예제 #2
0
 /// <summary>
 /// Decodes a previously encoded <see cref="float"/>.
 /// <para/>
 /// NOTE: This was bytesRefToFloat() in Lucene
 /// </summary>
 public static float BytesRefToSingle(BytesRef b)
 {
     return(Support.Number.Int32BitsToSingle(Int32AssociationFacetField.BytesRefToInt32(b)));
 }