Method PutInt16
PutInt16(Int16)
Writes the given
The
NOTE: This was putShort() in the JDK
Declaration
public abstract ByteBuffer PutInt16(short value)
Parameters
Type | Name | Description |
---|---|---|
System.Int16 | value | the |
Returns
Type | Description |
---|---|
ByteBuffer | this buffer. |
Exceptions
Type | Condition |
---|---|
BufferOverflowException | if position is greater than |
ReadOnlyBufferException | if no changes may be made to the contents of this buffer. |
PutInt16(Int32, Int16)
Writes the given
The
NOTE: This was putShort() in the JDK
Declaration
public abstract ByteBuffer PutInt16(int index, short value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | the index, must not be negative and equal or less than |
System.Int16 | value | the |
Returns
Type | Description |
---|---|
ByteBuffer | this buffer. |
Exceptions
Type | Condition |
---|---|
ReadOnlyBufferException | if no changes may be made to the contents of this buffer. |