Esempio n. 1
0
 /// <summary>
 /// Returns the 16-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.Int16"/>
 /// 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 short getInt16(int arrayIndex)
 {
     return(Fixed.decodeInt16(_data, _dataOffset + (2 * arrayIndex)));
 }
Esempio n. 2
0
 /// <summary>
 /// Returns the 16-bit signed integer value of self. The result of
 /// this method is only defined if <see cref="getType"/> is
 /// <see cref="BFlatEncoding.Type.Int16"/>
 /// </summary>
 /// <returns>the value of self.</returns>
 public short getInt16()
 {
     return(Fixed.decodeInt16(_data, _dataOffset));
 }