CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
encoding_encoder.h
1
2#ifndef __aspose_system_encoding_encoder_h__
3#define __aspose_system_encoding_encoder_h__
4
5#include <system/text/encoder.h>
6#include <system/exceptions.h>
7
8namespace System { namespace Text {
9
14class ASPOSECPP_SHARED_CLASS EncodingEncoder : public Encoder
15{
16public:
26 virtual ASPOSECPP_SHARED_API void Convert(const char_t *chars, int charCount, uint8_t *bytes, int byteCount, bool flush, int &charsUsed, int &bytesUsed, bool &completed);
38 virtual ASPOSECPP_SHARED_API void Convert(ArrayPtr<char_t> chars, int charIndex, int charCount, ArrayPtr<uint8_t> bytes, int byteIndex, int byteCount, bool flush, int &charsUsed, int &bytesUsed, bool &completed);
39
40protected:
45 ASPOSECPP_SHARED_API EncodingEncoder(EncodingPtr encoding_);
46};
47
48}}
49
50#endif // __aspose_system_encoding_encoder_h__
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
Encapsulates encoding character sequence into byte sequence. Objects of this class should only be all...
Definition: encoder.h:18
Encoder that uses encoding object for encoding. Objects of this class should only be allocated using ...
Definition: encoding_encoder.h:15
EncodingEncoder(EncodingPtr encoding_)
Constructor.
virtual void Convert(ArrayPtr< char_t > chars, int charIndex, int charCount, ArrayPtr< uint8_t > bytes, int byteIndex, int byteCount, bool flush, int &charsUsed, int &bytesUsed, bool &completed)
Converts characters to bytes.
EncodingPtr encoding
Encoding to use.
Definition: encoding_encoder.h:42
virtual void Convert(const char_t *chars, int charCount, uint8_t *bytes, int byteCount, bool flush, int &charsUsed, int &bytesUsed, bool &completed)
Converts characters to bytes.
@ Text
Defines color adjustment information for text.
Definition: db_command.h:9