/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. module decoders.binary.decoder;
  10. import decoders.decoder;
  11. import core.string;
  12. import core.stream;
  13. import core.definitions;
  14. // Section: Interfaces
  15. // Description: The interface to a binary codec.
  16. class BinaryDecoder : Decoder {
  17. StreamData decode(Stream stream, Stream toStream) {
  18. return StreamData.Invalid;
  19. }
  20. override string name() {
  21. return "Unknown Binary Decoder";
  22. }
  23. }