ToInt32() public method

Returns a 32-bit signed integer converted from four bytes at a specified position in a byte array.
public ToInt32 ( byte value, int startIndex ) : int
value byte An array of bytes.
startIndex int The starting position within value.
return int
示例#1
0
 /// <summary>
 /// Reads the int32.
 /// </summary>
 /// <returns></returns>
 public override int ReadInt32()
 {
     SynchBits();
     ReadInternal(buffer, 4);
     return(bitConverter.ToInt32(buffer, 0));
 }