adding buffer.writeInteger() and writeUintX()