ReadInt16() public static method

public static ReadInt16 ( System.Int64 address, int handle = -1 ) : Int16
address System.Int64
handle int
return System.Int16
Ejemplo n.º 1
0
        public long GetValue()
        {
            switch (bytes)
            {
            case 1:
                return(MemoryReader.ReadInt8(GetAddress()));

            case 2:
                return(MemoryReader.ReadInt16(GetAddress()));

            case 4:
                return(MemoryReader.ReadInt32(GetAddress()));

            case 8:
                return(MemoryReader.ReadInt64(GetAddress()));
            }
            return(-1);
        }