/// <summary> /// Process one byte of data. /// </summary> /// <param name="input">Data in.</param> /// <param name="output">Byte array for the output.</param> /// <param name="outOff">The offset in the output byte array to start writing from.</param> /// <returns>The amount of output bytes.</returns> public int ProcessByte( byte input, byte[] output, int outOff) { int resultLen = 0; buffer[bufOff++] = input; if (bufOff == buffer.Length) { resultLen = translator.Decode(buffer, 0, buffer.Length, output, outOff); bufOff = 0; } return(resultLen); }