CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
encoding_decoder.h
1
2#ifndef __aspose_system_text_encoding_decoder_h__
3#define __aspose_system_text_encoding_decoder_h__
4
5#include <system/text/decoder.h>
6#include <system/exceptions.h>
7
8#include <fwd.h>
9
10namespace System { namespace Text {
11
16class ASPOSECPP_SHARED_CLASS EncodingDecoder : public Decoder
17{
18public:
28 ASPOSECPP_SHARED_API void Convert(const uint8_t* bytes, int byteCount, char_t *chars, int charCount, bool flush, int &bytesUsed, int &charsUsed, bool &completed) override;
40 ASPOSECPP_SHARED_API void Convert(ArrayPtr<uint8_t> bytes, int byteIndex, int byteCount, ArrayPtr<char_t> chars, int charIndex, int charCount, bool flush, int &bytesUsed, int &charsUsed, bool &completed) override;
41
42protected:
47 ASPOSECPP_SHARED_API EncodingDecoder(const EncodingPtr& encoding_);
48};
49
50}}
51
52#endif // __aspose_system_text_encoding_decoder_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 decoding byte sequence into character sequence. Objects of this class should only be all...
Definition: decoder.h:19
Decoder that uses encoding object for decoding. Objects of this class should only be allocated using ...
Definition: encoding_decoder.h:17
void Convert(ArrayPtr< uint8_t > bytes, int byteIndex, int byteCount, ArrayPtr< char_t > chars, int charIndex, int charCount, bool flush, int &bytesUsed, int &charsUsed, bool &completed) override
Converts bytes to characters.
void Convert(const uint8_t *bytes, int byteCount, char_t *chars, int charCount, bool flush, int &bytesUsed, int &charsUsed, bool &completed) override
Converts bytes to characters.
EncodingDecoder(const EncodingPtr &encoding_)
Constructor.
EncodingPtr encoding
Encoding to use.
Definition: encoding_decoder.h:44
@ Text
Defines color adjustment information for text.
Definition: db_command.h:9