add writeChar, writeByte, writeBoolean