All pastes #744646 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-10-21 17:54 UTC
rendered paste body
    public int readSmart()
    {
        int i = readByte() & 0xff;
		caret = caret-1; //i forgot to reverse the read
        if(i < 128)
            return readRawByte() - 64;
        else
            return readShort() - 49152;
    }