private void WriteNumberValueMinimized(long value) { // Calculated based on the following: ',long.MaxValue' int bytesNeeded = JsonConstants.MaximumInt64Length + 1; if (_buffer.Length < bytesNeeded) { GrowAndEnsure(bytesNeeded); } int idx = 0; if (_currentDepth < 0) { _buffer[idx++] = JsonConstants.ListSeperator; } JsonWriterHelper.TryFormatInt64Default(value, _buffer.Slice(idx), out int bytesWritten); Advance(idx + bytesWritten); }