PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/decoders/binary/decoder.d

http://github.com/wilkie/djehuty
D | 29 lines | 13 code | 6 blank | 10 comment | 0 complexity | 2042ce10ef3a4c1a0158c6c598fac49c MD5 | raw file
 1/*
 2 * decoder.d
 3 *
 4 * This file implements the abstraction for an binary decoder.
 5 *
 6 * Author: Dave Wilkinson
 7 *
 8 */
 9
10module decoders.binary.decoder;
11
12import decoders.decoder;
13
14import core.string;
15import core.stream;
16import core.definitions;
17
18// Section: Interfaces
19
20// Description: The interface to a binary codec.
21class BinaryDecoder : Decoder {
22	StreamData decode(Stream stream, Stream toStream) {
23		return StreamData.Invalid;
24	}
25
26	override string name() {
27		return "Unknown Binary Decoder";
28	}
29}