ocean.io.serialize.SimpleStreamSerializer

Simple serializer for reading / writing generic data from / to IOStreams

Usage example, writing:

import ocean.io.serialize.SimpleSerializer;

scope file = new File("myfile.dat", File.WriteCreate);

char[] some_data = "data to be written to the file first";
char[][] more_data = ["second", "third", "fourth", "etc"];

SimpleSerializer.write(file, some_data);
SimpleSerializer.write(file, more_data);

Usage example, reading:

import ocean.io.serialize.SimpleSerializer;

scope file = new File("myfile.dat", File.ReadExisting);

char[] some_data;
char[][] more_data;

SimpleSerializer.read(file, some_data);
SimpleSerializer.read(file, more_data);

Members

Aliases

SimpleStreamSerializer
alias SimpleStreamSerializer = SimpleStreamSerializerT!(false)
Undocumented in source.
SimpleStreamSerializerArrays
alias SimpleStreamSerializerArrays = SimpleStreamSerializerT!(true)
Undocumented in source.

Classes

EofException
class EofException

End Of Flow exception class, thrown when an I/O operation on an IOStream results in EOF.

Functions

testSerialization
void testSerialization(T write)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

SimpleStreamSerializerT
struct SimpleStreamSerializerT(bool SerializeDynArrays = true)

Simple serializer struct - just a namespace, all methods are static.

Meta

License

Boost Software License Version 1.0. See LICENSE_BOOST.txt for details. Alternatively, this file may be distributed under the terms of the Tango 3-Clause BSD License (see LICENSE_BSD.txt for details).