Method GetInt16
GetInt16()
Returns the
The 2 bytes starting at the current position are composed into a
NOTE: This was getShort() in the JDK
Declaration
public abstract short GetInt16()
Returns
Type | Description |
---|---|
System.Int16 | the |
Exceptions
Type | Condition |
---|---|
BufferUnderflowException | if the position is greater than |
GetInt16(Int32)
Returns the
The 2 bytes starting at the specified index are composed into a
NOTE: This was getShort() in the JDK
Declaration
public abstract short GetInt16(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | the index, must not be negative and equal or less than |
Returns
Type | Description |
---|---|
System.Int16 | the |