LongoMatch.Store.Category.ByteToUShort C# (CSharp) Méthode

ByteToUShort() private méthode

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