com.j256.simplemagic.endian
Class MiddleEndianConverter
java.lang.Object
com.j256.simplemagic.endian.MiddleEndianConverter
- All Implemented Interfaces:
- EndianConverter
public class MiddleEndianConverter
- extends Object
- implements EndianConverter
A four-byte value in middle-endian (god help us) PDP-11 byte order.
- Author:
- graywatson
Method Summary |
Long |
convertNumber(int offset,
byte[] bytes,
int size)
Convert a number of bytes starting at an offset into a long integer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
convertNumber
public Long convertNumber(int offset,
byte[] bytes,
int size)
- Description copied from interface:
EndianConverter
- Convert a number of bytes starting at an offset into a long integer.
- Specified by:
convertNumber
in interface EndianConverter
- Returns:
- The long or null if not enough bytes.
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.