text: public void writeByte(sbyte b) throws IOException{Debug.Assert(bufferPos == buffer.position(), "bufferPos=" + bufferPos + " vs buffer.position()=" + buffer.position());buffer.put(b);if (++bufferPos == bufferSize){dump();}}