void writeInt(int value, {bool signed = true, int bits = 64}) { if (signed) { writeBit(value > 0); } writeBits(value.abs(), bits); }