X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b25be06635768807f8f693286fa73bb2297bb06c..4388f060552cc537e71e957d32f35e9d75a61233:/icuSources/common/unicode/bytestream.h diff --git a/icuSources/common/unicode/bytestream.h b/icuSources/common/unicode/bytestream.h index fb9e07a2..174aa38a 100644 --- a/icuSources/common/unicode/bytestream.h +++ b/icuSources/common/unicode/bytestream.h @@ -1,4 +1,4 @@ -// Copyright (C) 2009-2010, International Business Machines +// Copyright (C) 2009-2012, International Business Machines // Corporation and others. All Rights Reserved. // // Copyright 2007 Google Inc. All Rights Reserved. @@ -56,7 +56,7 @@ public: * Virtual destructor. * @stable ICU 4.2 */ - virtual ~ByteSink() { } + virtual ~ByteSink(); /** * Append "bytes[0,n-1]" to this. @@ -149,13 +149,18 @@ public: * @stable ICU 4.2 */ CheckedArrayByteSink(char* outbuf, int32_t capacity); + /** + * Destructor. + * @stable ICU 4.2 + */ + virtual ~CheckedArrayByteSink(); /** * Returns the sink to its original state, without modifying the buffer. * Useful for reusing both the buffer and the sink for multiple streams. * Resets the state to NumberOfBytesWritten()=NumberOfBytesAppended()=0 * and Overflowed()=FALSE. * @return *this - * @draft ICU 4.6 + * @stable ICU 4.6 */ virtual CheckedArrayByteSink& Reset(); /** @@ -201,7 +206,7 @@ public: * If Overflowed() then NumberOfBytesAppended()>NumberOfBytesWritten() * else they return the same number. * @return number of bytes written to the buffer - * @draft ICU 4.6 + * @stable ICU 4.6 */ int32_t NumberOfBytesAppended() const { return appended_; } private: