Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

IStringDecoder Struct Reference

List of all members.

Public Member Functions

void char8 (void *dst, uint count)
void char16 (void *dst, uint count)
void char32 (void *dst, uint count)

Detailed Description

Use instances of IStringDecoder to convert between character 'sizes' and to unwrap the various character encodings. These may throw an exception if they don't support the requested type. For example, an exception would/should be thrown where a Unicode-based IStringDecoder is requested to provide a char[] instead of a wchar[].

An appropriate IStringDecoder should be attached to each IReader, and thus be available for subsequent use. A raw binary implementation is attached by default (no decoding at all).

Note that the 'count' argument is the number of bytes available in the 'dst' buffer. The decoders are expected to fill exactly that amount, or throw an exception.

Definition at line 80 of file IReader.d.


Member Function Documentation

void char8 void *  dst,
uint  count
 

Referenced by AbstractReader::setStringDecoder().

void char16 void *  dst,
uint  count
 

Referenced by AbstractReader::setStringDecoder().

void char32 void *  dst,
uint  count
 

Referenced by AbstractReader::setStringDecoder().


The documentation for this struct was generated from the following file:
Generated on Sun Nov 7 19:07:06 2004 for Mango by doxygen 1.3.6