diff options
author | Filippos Karapetis | 2018-12-28 13:38:10 +0200 |
---|---|---|
committer | Filippos Karapetis | 2018-12-28 13:41:39 +0200 |
commit | 1c055f686e94c1676b8617cc21e0221c0d97dad9 (patch) | |
tree | 2eac9d51df292e42c70aaf24f55f3445a5e56b11 /engines/glk/alan2/decode.h | |
parent | aa8bcac2335804a8e8be47ea7fb27b09148ed49c (diff) | |
download | scummvm-rg350-1c055f686e94c1676b8617cc21e0221c0d97dad9.tar.gz scummvm-rg350-1c055f686e94c1676b8617cc21e0221c0d97dad9.tar.bz2 scummvm-rg350-1c055f686e94c1676b8617cc21e0221c0d97dad9.zip |
GLK: ALAN2: Move comments to header files
Diffstat (limited to 'engines/glk/alan2/decode.h')
-rw-r--r-- | engines/glk/alan2/decode.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/engines/glk/alan2/decode.h b/engines/glk/alan2/decode.h index 1361badfa1..75a35dc945 100644 --- a/engines/glk/alan2/decode.h +++ b/engines/glk/alan2/decode.h @@ -31,22 +31,33 @@ namespace Glk { namespace Alan2 { // Structure for saved decode info -typedef struct DecodeInfo { +struct DecodeInfo { long fpos; int buffer; int bits; CodeValue value; CodeValue high; CodeValue low; -} DecodeInfo; +}; class Decode { public: Decode(Common::File *txtFile, Aword *freq): _txtFile(txtFile), _freq(freq) {} void startDecoding(); int decodeChar(); + + /** + * Save so much about the decoding process, so it is possible to restore + * and continue later. + */ DecodeInfo *pushDecode(); + + /** + * Restore enough info about the decoding process, so it is possible to + * continue after having decoded something else. + */ void popDecode(DecodeInfo *info); + int inputBit(); private: @@ -64,6 +75,6 @@ private: }; } // End of namespace Alan2 -} // Engine of namespace GLK +} // End of namespace Glk #endif |