1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
Tom Lint 52ef14a94b Transition from SVN to Git
Added implicit conversion to base types to all primary types (UInt32 et
al)
Added implicit conversion from System::String to const char*
2013-05-05 18:18:41 +02:00

29 lines
941 B
C++

#ifndef _TEXT_ENCODER_
#define _TEXT_ENCODER_
#include <System/Types.h>
namespace System
{
namespace Text
{
/// <summary>
/// Converts a set of characters into a sequence of bytes.
/// </summary>
class Encoder
{
public:
Encoder();
virtual void Convert(char* chars, int charCount, byte* bytes, int byteCount, bool flush, int charsUsed, int bytesUsed, bool completed);
virtual void Convert(char chars[], int charIndex, int charCount, byte bytes[], int byteIndex, int byteCount, bool flush, int charsUsed, int bytesUsed, bool completed);
virtual int GetByteCount(char* chars, int count, bool flush);
virtual int GetByteCount(char chars[], int index, int count, bool flush);
virtual int GetBytes(char* chars, int charCount, byte* bytes, int byteCount, bool flush);
virtual int GetBytes(char chars[], int charIndex, int charCount, byte bytes[], int byteIndex, bool flush);
};
}
}
#endif //_TEXT_ENCODER_