A TiledStream allows you to write a blob of binary data to a JSON stream in an efficient manner. The data is buffered into uniform arrays which are output into a standard JSON array. The resulting data looks something like:
The tile-data is written as JSON string objects. You can read these yourself, or use the TiledStream in UT_JSONParser.
You should never write to the JSONWriter while the TiledStream is open.
An example of using this might be something like:
{
char buffer[128];
int nread;
while ((nread = is.
bread(buffer, 128)) > 0)
if (!os.write(buffer, nread)) return false;
return true;
}
Definition at line 420 of file UT_JSONWriter.h.