1 /** 2 * Copyright: © 2012-2014 Anton Gushcha 3 * License: Subject to the terms of the MIT license, as written in the included LICENSE file. 4 * Authors: NCrashed <ncrashed@gmail.com> 5 */ 6 module devol.serializable; 7 8 public import std.stream; 9 10 /** 11 * Defines procedures for saving to a binary format. 12 */ 13 interface ISerializable 14 { 15 /// Saving function to binary stream 16 void saveBinary(OutputStream stream); 17 }