public interface BinaryModel
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the model and disposes all resources.
|
int |
getBytes(long off,
int len,
byte[] target)
Gets a sequence of bytes and copies them into the supplied byte array.
|
long |
getLength()
Returns the total length of the binary data.
|
long getLength()
int getBytes(long off, int len, byte[] target)
off
- the starting offset >= 0len
- the number of bytes >= 0 && <= size - offsettarget
- the target array to copy intojava.lang.ArrayIndexOutOfBoundsException
- Thrown if the area covered by
the arguments is not contained in the model.void close()