|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.gsfc.drl.rtstps.core.output.hdf5.ApStorageArea
public class ApStorageArea
Write or read packets from the ApStorageArea area
Field Summary | |
---|---|
private byte[] |
data
|
private int |
offset
|
private java.util.List<Packet> |
packets
|
Constructor Summary | |
---|---|
ApStorageArea(byte[] data,
int offset)
Constructor to read out of the ApStorage area, use this conjunction with the read method below. |
|
ApStorageArea(java.util.List<Packet> packets)
Constructor for manipulating the ApStorageArea, in preparation for writing to a memory block through the write method. |
Method Summary | |
---|---|
java.util.List<Packet> |
read(int offset,
int size)
Read up to size amount of packets. |
int |
write(byte[] data,
int offset)
Write the packet list to the specified data buffer at the given offset. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.List<Packet> packets
private int offset
private byte[] data
Constructor Detail |
---|
public ApStorageArea(java.util.List<Packet> packets)
packets
- a list of packets to writepublic ApStorageArea(byte[] data, int offset)
data
- a byte
array of packet data, including header of ApStorage areaoffset
- an offset into the array where the packet data startsMethod Detail |
---|
public java.util.List<Packet> read(int offset, int size)
offset
- an offset past the header in the ApStorage area to the raw datasize
- the amount to read in bytes
public int write(byte[] data, int offset)
data
- the data to be writtenoffset
- an offset into that data
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |