internal override void WriteBodyTo(IPrivateWriter writer) { if (NullFlagOn()) { writer.WriteNull(IonType.Int); return; } if (_bigInteger != null) { writer.WriteInt(_bigInteger.Value); return; } writer.WriteInt(_longValue); }