1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef nsUnicharBuffer_h__
7 #define nsUnicharBuffer_h__
9 #include "nsIUnicharBuffer.h"
10 #include "mozilla/Attributes.h"
12 class UnicharBufferImpl MOZ_FINAL
: public nsIUnicharBuffer
{
17 Create(nsISupports
*aOuter
, REFNSIID aIID
, void **aResult
);
20 NS_IMETHOD
Init(uint32_t aBufferSize
);
21 NS_IMETHOD_(int32_t) GetLength() const;
22 NS_IMETHOD_(int32_t) GetBufferSize() const;
23 NS_IMETHOD_(PRUnichar
*) GetBuffer() const;
24 NS_IMETHOD_(bool) Grow(int32_t aNewSize
);
34 #endif // nsUnicharBuffer_h__