public class BigEndianConverter extends Object implements EndianConverter
Modifier and Type | Method and Description |
---|---|
Long |
convertId3(int offset,
byte[] bytes,
int size)
Convert a number of bytes starting at an offset into a long integer where the high-bit in each byte is always 0.
|
Long |
convertNumber(int offset,
byte[] bytes,
int size)
Convert a number of bytes starting at an offset into a long integer.
|
byte[] |
convertToByteArray(long value,
int size)
Translate a number into an array of bytes.
|
public Long convertNumber(int offset, byte[] bytes, int size)
EndianConverter
convertNumber
in interface EndianConverter
public Long convertId3(int offset, byte[] bytes, int size)
EndianConverter
convertId3
in interface EndianConverter
public byte[] convertToByteArray(long value, int size)
EndianConverter
convertToByteArray
in interface EndianConverter
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.