private void WriteNumberValueIndented(float value) { int idx = 0; if (_currentDepth < 0) { while (_buffer.Length <= idx) { GrowAndEnsure(); } _buffer[idx++] = JsonConstants.ListSeperator; } if (_tokenType != JsonTokenType.None) { WriteNewLine(ref idx); } int indent = Indentation; while (true) { bool result = JsonWriterHelper.TryWriteIndentation(_buffer.Slice(idx), indent, out int bytesWritten); idx += bytesWritten; if (result) { break; } indent -= bytesWritten; AdvanceAndGrow(idx); idx = 0; } WriteNumberValueFormatLoop(value, ref idx); Advance(idx); }