コード例 #1
0
 /// <summary>
 /// Returns the 32-bit signed integer value of an array element of
 /// self. The result of this method is only defined if
 /// <see cref="getType"/> is <see cref="BFlatEncoding.Type.Int32"/>
 /// and <paramref name="arrayIndex"/> is less than the return value of
 /// <see cref="getArrayLength"/>.
 /// </summary>
 /// <param name="arrayIndex">The 0-based index into this array.</param>
 /// <returns>The value of this array element.</returns>
 public int getInt32(int arrayIndex)
 {
     return(Fixed.decodeInt32(_data, _dataOffset + (4 * arrayIndex)));
 }
コード例 #2
0
 /// <summary>
 /// Returns the 32-bit signed integer value of self. The result of
 /// this method is only defined if <see cref="getType"/> is
 /// <see cref="BFlatEncoding.Type.Int32"/>
 /// </summary>
 /// <returns>the value of self.</returns>
 public int getInt32()
 {
     return(Fixed.decodeInt32(_data, _dataOffset));
 }