Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/Plugins/Library/ml_devices/gen_deviceprovider/stringBuilder.h

31 lines
540 B
C
Raw Normal View History

2024-09-24 12:54:57 +00:00
#ifndef NULLSOFT_WINAMP_STRING_BUILDER_HEADER
#define NULLSOFT_WINAMP_STRING_BUILDER_HEADER
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif
#include <wtypes.h>
class StringBuilder
{
public:
StringBuilder();
~StringBuilder();
public:
HRESULT Allocate(size_t newSize);
void Clear(void);
LPCWSTR Get(void);
HRESULT Set(size_t index, WCHAR value);
HRESULT Append(LPCWSTR pszString);
protected:
LPWSTR buffer;
LPWSTR cursor;
size_t allocated;
size_t remaining;
};
#endif //NULLSOFT_WINAMP_STRING_BUILDER_HEADER