LongoMatch.Store.Category.ByteToUShort C# (CSharp) 메소드

ByteToUShort() 개인적인 메소드

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