public abstract class Structs
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
Structs(int length,
int structSize) |
| Modifier and Type | Method and Description |
|---|---|
int |
length()
Length of this array
|
protected int |
structOffset(int index)
Gets the byte offset of the specified struct identified by index
|
int |
structSize()
Size in bytes of single struct
|
java.lang.String |
toString() |
void |
writeTo(java.io.OutputStream stream) |
void |
writeTo(Stream stream)
Write the content to specified stream
|
public final int length()
public final int structSize()
protected final int structOffset(int index)
index - the index of the arraypublic java.lang.String toString()
toString in class java.lang.Objectpublic void writeTo(Stream stream) throws java.io.IOException
stream - Which stream to write the struct tojava.io.IOException - when failed to write to stream.public void writeTo(java.io.OutputStream stream)
throws java.io.IOException
java.io.IOException