|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Pair
This class provides an union structure to port Juergen's C code.
The union can contain a double word, a word or a byte.
0xFFFFFFFF.
This code is GPL.
Copyright (c) 2000 Brice Fines.
Field Summary | |
private int |
unsignedByte
A table of 4 unsigned 8 bits integers that represents the union. 0xFF FF FF FF |
Constructor Summary | |
Pair()
Constructor. |
Method Summary | |
protected int |
getDWord()
Get the double word value of the union. 0x FF FF FF FF |
protected int |
getHighByte()
Get the high byte value of the union. 0x 00 00 FF 00 |
protected int |
getLowByte()
Get the low byte value of the union. 0x 00 00 00 FF |
protected int |
getWord()
Get the word value of the union. 0x 00 00 FF FF |
protected void |
setDWord(int Value)
Set the union with a double word value. 0xFF FF FF FF |
protected void |
setHighByte(int Value)
Set the high byte of the union with a value. 0x 00 00 FF 00 |
protected void |
setLowByte(int Value)
Set the low byte of the union with a value. 0x 00 00 00 FF |
protected void |
setWord(int Value)
Set the union with a word value. 0x 00 00 FF FF |
Methods inherited from class java.lang.Object |
|
Field Detail |
private int unsignedByte
Constructor Detail |
public Pair()
Method Detail |
protected final void setDWord(int Value)
Value
- the value that will be used to set the union.protected final void setWord(int Value)
Value
- the value that will be used to set the union.protected final void setLowByte(int Value)
Value
- the value that will be used to set the union.protected final void setHighByte(int Value)
Value
- the value that will be used to set the union.protected final int getDWord()
protected final int getWord()
protected final int getLowByte()
protected final int getHighByte()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |