< prev index next >
src/hotspot/share/utilities/ostream.hpp
Print this page
rev 59275 : [mq]: v1
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -213,11 +213,12 @@
// Return number of characters written into buffer, excluding terminating zero and
// subject to truncation in static buffer mode.
size_t size() const { return buffer_pos; }
const char* base() const { return buffer; }
void reset();
- char* as_string() const;
+ // copy to a resource, or C-heap, array as requested
+ char* as_string(bool c_heap = false) const;
};
class fileStream : public outputStream {
protected:
FILE* _file;
< prev index next >