public class Octal
extends java.lang.Object
Constructor and Description |
---|
Octal() |
Modifier and Type | Method and Description |
---|---|
static int |
getCheckSumOctalBytes(long value,
byte[] buf,
int offset,
int length)
Write the checksum octal integer to a header buffer.
|
static int |
getLongOctalBytes(long value,
byte[] buf,
int offset,
int length)
Write an octal long integer to a header buffer.
|
static int |
getOctalBytes(long value,
byte[] buf,
int offset,
int length)
Write an octal integer to 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
- The value to write.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
- The value to write.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
- The value to write.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.