public class Octal extends Object
Constructor and Description |
---|
Octal() |
Modifier and Type | Method and Description |
---|---|
static int |
getCheckSumOctalBytes(long value,
byte[] buf,
int offset,
int length)
Parse the checksum octal integer from a header buffer.
|
static int |
getLongOctalBytes(long value,
byte[] buf,
int offset,
int length)
Parse an octal long integer from a header buffer.
|
static int |
getOctalBytes(long value,
byte[] buf,
int offset,
int length)
Parse an octal integer from a header buffer.
|
static long |
parseOctal(byte[] header,
int offset,
int length)
Parse an octal string from a header buffer.
|
public static long parseOctal(byte[] header, int offset, int length)
header
- The header buffer from which to parse.offset
- The offset into the buffer from which to parse.length
- The number of header bytes to parse.public static int getOctalBytes(long value, byte[] buf, int offset, int length)
value
- buf
- The header buffer from which to parse.offset
- The offset into the buffer from which to parse.length
- The number of header bytes to parse.public static int getCheckSumOctalBytes(long value, byte[] buf, int offset, int length)
value
- buf
- The header buffer from which to parse.offset
- The offset into the buffer from which to parse.length
- The number of header bytes to parse.public static int getLongOctalBytes(long value, byte[] buf, int offset, int length)
value
- buf
- The header buffer from which to parse.offset
- The offset into the buffer from which to parse.length
- The number of header bytes to parse.