~ubuntu-branches/debian/squeeze/stella/squeeze

« back to all changes in this revision

Viewing changes to src/emucore/Deserializer.hxx

  • Committer: Bazaar Package Importer
  • Author(s): Luca Falavigna, Franczen Attila, Luca Falavigna
  • Date: 2008-11-08 12:04:12 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20081108120412-w6xq87vzgokstfey
Tags: 2.6.1-0ubuntu1
[ Franczen Attila ]
* New upstream release (LP: #183571).
* Updated policy to 3.8.0.

[ Luca Falavigna ]
* debian/patches/gcc-4.3: fix FTBFS with gcc-4.3 compiler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
//  SS  SS   tt   ee      ll   ll  aa  aa
9
9
//   SSSS     ttt  eeeee llll llll  aaaaa
10
10
//
11
 
// Copyright (c) 1995-2005 by Bradford W. Mott and the Stella team
 
11
// Copyright (c) 1995-2008 by Bradford W. Mott and the Stella team
12
12
//
13
13
// See the file "license" for information on usage and redistribution of
14
14
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
15
15
//
16
 
// $Id: Deserializer.hxx,v 1.9 2005/12/17 22:48:24 stephena Exp $
 
16
// $Id: Deserializer.hxx,v 1.13 2008/02/06 13:45:21 stephena Exp $
17
17
//============================================================================
18
18
 
19
19
#ifndef DESERIALIZER_HXX
27
27
  deserialized from an input binary file in a system-independent
28
28
  way.
29
29
 
30
 
  All ints should be cast to their appropriate data type upon method
31
 
  return.
 
30
  All bytes and ints should be cast to their appropriate data type upon
 
31
  method return.
32
32
 
33
33
  @author  Stephen Anthony
34
 
  @version $Id: Deserializer.hxx,v 1.9 2005/12/17 22:48:24 stephena Exp $
 
34
  @version $Id: Deserializer.hxx,v 1.13 2008/02/06 13:45:21 stephena Exp $
35
35
*/
36
36
class Deserializer
37
37
{
70
70
    bool isOpen(void);
71
71
 
72
72
    /**
73
 
      Reads an int value from the current input stream.
 
73
      Reads a byte value (8-bit) from the current input stream.
 
74
 
 
75
      @result The char value which has been read from the stream.
 
76
    */
 
77
    char getByte(void);
 
78
 
 
79
    /**
 
80
      Reads an int value (32-bit) from the current input stream.
74
81
 
75
82
      @result The int value which has been read from the stream.
76
83
    */
95
102
    fstream myStream;
96
103
 
97
104
    enum {
98
 
      TruePattern  = 0xfab1fab2,
99
 
      FalsePattern = 0xbad1bad2
 
105
      TruePattern  = 0xfe,
 
106
      FalsePattern = 0x01
100
107
    };
101
108
};
102
109