Method DecodeSingle
DecodeSingle(Byte[])
NOTE: This was decodeFloat() in Lucene
Declaration
public static float DecodeSingle(byte[] bytes)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | bytes |
Returns
Type | Description |
---|---|
System.Single | the decoded float |
See Also
DecodeSingle(Byte[], Int32)
Decode the payload that was encoded using EncodeSingle(Single). NOTE: the length of the array must be at least offset + 4 long.
NOTE: This was decodeFloat() in Lucene
Declaration
public static float DecodeSingle(byte[] bytes, int offset)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | bytes | The bytes to decode |
System.Int32 | offset | The offset into the array. |
Returns
Type | Description |
---|---|
System.Single | The float that was encoded |