ArtemisComm.Utility.ToInt16 C# (CSharp) Méthode

ToInt16() public static méthode

public static ToInt16 ( this me ) : short
me this
Résultat short
        public static short ToInt16(this Stream me)
        {
            if (me != null)
            {
                byte[] buffer = new byte[2];
                
                me.Read(buffer, 0, 2);
                return BitConverter.ToInt16(buffer, 0);
            }
            else
            {
                return 0;
            }
        }
        public static long ToInt64(this Stream me)