LongoMatch.Store.Category.ByteToUShort C# (CSharp) Method

ByteToUShort() private method

private ByteToUShort ( Byte val ) : ushort
val Byte
return ushort
        ushort ByteToUShort(Byte val)
        {
            var ret = (ushort) (((float)val) / byte.MaxValue * ushort.MaxValue);
            return ret;
        }