Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Feb 26, 2022
1 parent 2f293e4 commit 52a84fd
Showing 1 changed file with 11 additions and 3 deletions.
Expand Up @@ -1866,9 +1866,9 @@ private final String _findDecodedFromSymbols(final int len) throws IOException
}

int q2 = (inBuf[inPtr++] & 0xFF);
q2 = (q2 << 8) | (inBuf[inPtr++] & 0xFF);
q2 = (q2 << 8) | (inBuf[inPtr++] & 0xFF);
q2 = (q2 << 8) | (inBuf[inPtr++] & 0xFF);
q2 = (q2 << 8) | (inBuf[inPtr++] & 0xFF);
q2 = (q2 << 8) | (inBuf[inPtr++] & 0xFF);
q2 = (q2 << 8) | (inBuf[inPtr++] & 0xFF);

if (len < 13) {
int q3 = (inBuf[inPtr++] & 0xFF);
Expand Down Expand Up @@ -1940,6 +1940,14 @@ private static int[] _growArrayTo(int[] arr, int minSize) {
return Arrays.copyOf(arr, size);
}

// Helper method needed to fix [dataformats-binary#312], masking of 0x00 character
// 26-Feb-2022, tatu: not yet used
/*
private final static int _padLastQuad(int q, int bytes) {
return (bytes == 4) ? q : (q | (-1 << (bytes << 3)));
}
*/

/*
/**********************************************************
/* Internal methods, secondary parsing
Expand Down

0 comments on commit 52a84fd

Please sign in to comment.