/decoders/binary/decoder.d
http://github.com/wilkie/djehuty · D · 29 lines · 13 code · 6 blank · 10 comment · 0 complexity · 2042ce10ef3a4c1a0158c6c598fac49c MD5 · raw file
- /*
- * decoder.d
- *
- * This file implements the abstraction for an binary decoder.
- *
- * Author: Dave Wilkinson
- *
- */
- module decoders.binary.decoder;
- import decoders.decoder;
- import core.string;
- import core.stream;
- import core.definitions;
- // Section: Interfaces
- // Description: The interface to a binary codec.
- class BinaryDecoder : Decoder {
- StreamData decode(Stream stream, Stream toStream) {
- return StreamData.Invalid;
- }
- override string name() {
- return "Unknown Binary Decoder";
- }
- }