|
Servertec Jenie 1.0.1 09/04/2005 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectstec.jenie.NativeObject
stec.jenie.Union
public class Union
Represents a native union.
Unions can only be passed or returned by functions and callbacks as a pointer to the union.
| Constructor Summary | |
|---|---|
Union()
Constructs a new empty union. |
|
Union(NativeObject[] members)
Constructs a new union with the specified members. |
|
Union(Pointer pointer,
NativeObject[] members)
Constructs a new union from the specified pointer to a union and having the specified members. |
|
Union(Pointer pointer,
Union union)
Constructs a new union from the specified pointer to a union and with the members of the specified union. |
|
Union(Union union)
Constructs a new union with the members of the specified union. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a clone of this union. |
boolean |
equals(java.lang.Object object)
Returns whether this union equals the specified union. |
NativeObject |
getMemberAt(int index)
Returns the member of this union at the specified index. |
NativeObject[] |
getMembers()
Returns the members of this union. |
void |
setMembers(NativeObject[] members)
Sets the members of this union. |
void |
setMembers(Pointer pointer,
NativeObject[] members)
Sets the union to the specified pointer to a union and having the specified members. |
void |
setMembers(Pointer pointer,
Union union)
Sets the union to the specified pointer to a union and having the members of the specified union. |
void |
setMembers(Union union)
Sets the members of this union with the members of the specified union. |
void |
setNativeBuffer(NativeBuffer native_buffer)
Used to the the native buffer. |
| Methods inherited from class stec.jenie.NativeObject |
|---|
getAlignment, getNativeAddress, getNativeBuffer, getNativeBufferHandle, hashCode, setNativeBuffer, setNativeBuffer, size |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Union()
public Union(NativeObject[] members)
throws java.lang.OutOfMemoryError
members - any members of the union.
java.lang.OutOfMemoryError - if there is not enough free memory.
public Union(Union union)
throws java.lang.OutOfMemoryError
union - the union to use.
java.lang.OutOfMemoryError - if there is not enough free memory.
public Union(Pointer pointer,
NativeObject[] members)
pointer - the pointer to the union.members - any members of the union.
public Union(Pointer pointer,
Union union)
pointer - the pointer to the union.union - the union to use.| Method Detail |
|---|
public void setNativeBuffer(NativeBuffer native_buffer)
setNativeBuffer in class NativeObjectnative_buffer - the reference to a native buffer.public void setMembers(NativeObject[] members)
members - the members to be used.public void setMembers(Union union)
union - the union to use.
public void setMembers(Pointer pointer,
NativeObject[] members)
pointer - the pointer to the union.members - any members of the union.
public void setMembers(Pointer pointer,
Union union)
pointer - the pointer to the union.union - the union to use.public NativeObject[] getMembers()
public NativeObject getMemberAt(int index)
index - the index of the member to retrieve.
java.lang.IndexOutOfBoundsException - if the index specified is out of bounds.
public java.lang.Object clone()
throws java.lang.OutOfMemoryError
clone in class NativeObjectjava.lang.OutOfMemoryError - if there is not enough free memory.public boolean equals(java.lang.Object object)
equals in class NativeObjectobject - the union to compare against.
|
Servertec Jenie 1.0.1 09/04/2005 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2004-2005 Servertec. All rights reserved.