mirror of
https://github.com/peterdell/wudsn-ide.git
synced 2024-06-03 06:29:35 +00:00
44 lines
1.1 KiB
Java
44 lines
1.1 KiB
Java
package com.wudsn.ide.hex;
|
|
|
|
public interface FileContent {
|
|
|
|
/**
|
|
* Gets the length of the file content.
|
|
*
|
|
* @return The length of the file content, a non-negative integer.
|
|
*/
|
|
public int getLength();
|
|
|
|
/**
|
|
* Gets a byte (8 bit) from the file content.
|
|
*
|
|
* @param offset The offset, a non-negative integer.
|
|
* @return The byte from the file content.
|
|
*/
|
|
public int getByte(long offset);
|
|
|
|
/**
|
|
* Gets a word (16 bit) in little endian format from the file content.
|
|
*
|
|
* @param offset The offset, a non-negative integer.
|
|
* @return The word from the file content.
|
|
*/
|
|
public int getWord(long offset);
|
|
|
|
/**
|
|
* Gets a word (16 bit) in big endian format from the file content.
|
|
*
|
|
* @param offset The offset, a non-negative integer.
|
|
* @return The word from the file content.
|
|
*/
|
|
public int getWordBigEndian(long offset);
|
|
|
|
/**
|
|
* Gets a double word (32 bit) in big endian format from the file content.
|
|
*
|
|
* @param offset The offset, a non-negative integer.
|
|
* @return The word from the file content.
|
|
*/
|
|
public long getDoubleWordBigEndian(long offset);
|
|
}
|