Writes a BigInt. See BigIntExtension.toBytes for encoding description.
BigIntExtension.toBytes
int writeBigInt(BigInt n) { return n.writeTo(this); }