BitSharp.Common.Bits.ToInt32 C# (CSharp) Method

ToInt32() public static method

public static ToInt32 ( byte value, int startIndex ) : Int32
value byte
startIndex int
return Int32
        public static Int32 ToInt32(byte[] value, int startIndex = 0)
        {
            return BitConverter.ToInt32(Order(value), startIndex);
        }

Usage Example

Example #1
0
        private void InnerInit(out int hashCode)
        {
            var hashBytes = ToByteArray();

            hashCode = Bits.ToInt32(new xxHash(32).ComputeHash(hashBytes));
        }