| java.lang.Object org.apache.harmony.awt.nativebridge.VoidPointer org.apache.harmony.awt.nativebridge.Int16Pointer
Int16Pointer | public class Int16Pointer extends VoidPointer (Code) | | TODO: implement char array support
|
Method Summary | |
public void | fill(short value, int size) | public short | get(int index) returns the element at the specified position. | public void | get(short[] dst, int offset, int length) This method transfers short values into the given destination array. | public char | getChar(int index) returns the element at the specified position. | public void | getChar(char[] dst, int offset, int length) This method transfers chars into the given destination array. | public Int16Pointer | getElementPointer(int index) returns class that represents the pointer to specified index. | public String | getString() | public String | getString(long strlen) | public boolean | isDirect() | public void | set(int index, short value) sets the element at the specified position. | public void | set(short[] src, int offset, int length) This method transfers short values from the given destination array. | public void | setChar(int index, char value) sets the element at the specified position. | public void | setChar(char[] src, int offset, int length) This method transfers chars from the given destination array. | public void | setString(String str) Convert String to 0 terminated UTF16 (Unicode) string. | public int | size() returns the number of elements in array referenced by this object. |
Int16Pointer | Int16Pointer(long addr)(Code) | | |
Int16Pointer | Int16Pointer(int size, boolean direct)(Code) | | |
fill | public void fill(short value, int size)(Code) | | |
get | public short get(int index)(Code) | | returns the element at the specified position.
|
get | public void get(short[] dst, int offset, int length)(Code) | | This method transfers short values into the given destination array.
Parameters: dst - - The array into which values are to be written Parameters: offset - - The offset within the array of the first element to be written;must be non-negative and no larger than dst.length Parameters: length - - The maximum number of elements to be written to the given array;must be non-negative and no larger than dst.length - offset |
getChar | public char getChar(int index)(Code) | | returns the element at the specified position.
|
getChar | public void getChar(char[] dst, int offset, int length)(Code) | | This method transfers chars into the given destination array.
Parameters: dst - - The array into which chars are to be written Parameters: offset - - The offset within the array of the first element to be written;must be non-negative and no larger than dst.length Parameters: length - - The maximum number of elements to be written to the given array;must be non-negative and no larger than dst.length - offset |
getElementPointer | public Int16Pointer getElementPointer(int index)(Code) | | returns class that represents the pointer to specified index.
|
getString | public String getString()(Code) | | convert UTF16 bytes to String
|
getString | public String getString(long strlen)(Code) | | convert UTF16 bytes to String
|
set | public void set(int index, short value)(Code) | | sets the element at the specified position.
|
set | public void set(short[] src, int offset, int length)(Code) | | This method transfers short values from the given destination array.
Parameters: src - - The array from which values are to be read Parameters: offset - - The offset within the array of the first element to be read;must be non-negative and no larger than dst.length Parameters: length - - The maximum number of elements to be read from the given array;must be non-negative and no larger than dst.length - offset |
setChar | public void setChar(int index, char value)(Code) | | sets the element at the specified position.
|
setChar | public void setChar(char[] src, int offset, int length)(Code) | | This method transfers chars from the given destination array.
Parameters: src - - The array from which chars are to be read Parameters: offset - - The offset within the array of the first element to be read;must be non-negative and no larger than dst.length Parameters: length - - The maximum number of elements to be read from the given array;must be non-negative and no larger than dst.length - offset |
setString | public void setString(String str)(Code) | | Convert String to 0 terminated UTF16 (Unicode) string.
And set it to buffer
|
size | public int size()(Code) | | returns the number of elements in array referenced by this object.
If size is unknown returns -1.
|
|
|