public void encode(byte[] data, int offset, int length) { int plainIndex = offset; while (plainIndex < (offset + length)) { work[count] = data[plainIndex]; count++; if (count == work.length || ((offset + length) - plainIndex) == 1) { encodeBlock(); count = 0; work[0] = 0; work[1] = 0; work[2] = 0; } plainIndex++; } }
public void encode(byte[] data, int offset, int length) { int plainIndex = offset; while (plainIndex < (offset + length)) { work[count] = data[plainIndex]; count++; if (count == work.length || ((offset + length) - plainIndex) == 1) { encodeBlock(); count = 0; work[0] = 0; work[1] = 0; work[2] = 0; } plainIndex++; } }
public void encode(byte[] data, int offset, int length) { int plainIndex = offset; while (plainIndex < (offset + length)) { work[count] = data[plainIndex]; count++; if (count == work.length || ((offset + length) - plainIndex) == 1) { encodeBlock(); count = 0; work[0] = 0; work[1] = 0; work[2] = 0; } plainIndex++; } }
public String flush() { if (count > 0) encodeBlock(); String r = drain(); count = 0; line = 0; work[0] = 0; work[1] = 0; work[2] = 0; return r; }
public String flush() { if (count > 0) encodeBlock(); String r = drain(); count = 0; line = 0; work[0] = 0; work[1] = 0; work[2] = 0; return r; }
public String flush() { if (count > 0) encodeBlock(); String r = drain(); count = 0; line = 0; work[0] = 0; work[1] = 0; work[2] = 0; return r; }