mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2024-06-06 21:29:27 +00:00
tidying
This commit is contained in:
parent
b1ed1a74ba
commit
c1deee56a0
|
@ -20,12 +20,12 @@ class CodedMessage extends Message
|
||||||
protected String getLine (int offset)
|
protected String getLine (int offset)
|
||||||
// ---------------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------------//
|
||||||
{
|
{
|
||||||
int length = buffer[offset] & 0xFF;
|
int length = buffer[offset++] & 0xFF;
|
||||||
byte[] translation = new byte[length];
|
byte[] translation = new byte[length];
|
||||||
codeOffset--;
|
codeOffset--;
|
||||||
for (int j = 0; j < length; j++)
|
for (int j = 0; j < length; j++)
|
||||||
{
|
{
|
||||||
translation[j] = buffer[offset + 1 + j];
|
translation[j] = buffer[offset + j];
|
||||||
translation[j] -= codeOffset - j * 3;
|
translation[j] -= codeOffset - j * 3;
|
||||||
}
|
}
|
||||||
return HexFormatter.getString (translation, 0, length);
|
return HexFormatter.getString (translation, 0, length);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user