1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
Halofreak1990 1bf933432b List class now works.
TextureCollection is broken because it can somehow not resolve Texture as template argument for the List it uses.
Added missing BinaryWriter and TextWriter classes to System::IO namespace
Modified BinaryReader
Added PacketReader and PacketWriter classes to XFX::Net namespace
2011-03-10 22:55:43 +00:00

29 lines
969 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_