static int findWhite(BitStream inb, Code code) throws IOException {
        code.reset();
        while (!inb.atEndOfFile()) {
            int i = inb.getBits(1);
            code.append(i != 0);
            int j;
            j = findPositionInTable(code, twcodes);
            if (j >= 0) {
                //System.err.println("BINGO! tw "+_twcodes[j]+" "+j);
                return j;
            }
            j = findPositionInTable(code, mwcodes);
            if (j >= 0) {
                //System.err.println("BINGO! mw "+_mwcodes[j]+" "+(j+1)*64);
                return (j + 1) * 64;
            }
            j = findPositionInTable(code, extmcodes);
            if (j >= 0) {
                //System.err.println("BINGO! extm "+_extmcodes[j]+" "+(1792+j*64));
                return (1792 + j * 64);
            }
        }
        inb.close();
        //System.err.println("CODE ERROR! " + code);
        return 0;
    }