~ubuntu-branches/ubuntu/saucy/openexr/saucy

« back to all changes in this revision

Viewing changes to IlmImf/ImfIO.h

  • Committer: Bazaar Package Importer
  • Author(s): Adeodato Simó
  • Date: 2008-03-24 23:00:21 UTC
  • mfrom: (3.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080324230021-gnofz9mnvcj1xlv3
Tags: 1.6.1-3
Disable (hopefully temporarily) the test suite on arm and ia64.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
    //-----------
61
61
 
62
62
    virtual ~IStream ();
 
63
    
 
64
    
 
65
    //-------------------------------------------------
 
66
    // Does this input stream support memory-mapped IO?
 
67
    //
 
68
    // Memory-mapped streams can avoid an extra copy;
 
69
    // memory-mapped read operations return a pointer
 
70
    // to an internal buffer instead of copying data
 
71
    // into a buffer supplied by the caller.
 
72
    //-------------------------------------------------
 
73
 
 
74
    virtual bool        isMemoryMapped () const;
 
75
 
63
76
 
64
77
    //------------------------------------------------------
65
78
    // Read from the stream:
72
85
    //------------------------------------------------------
73
86
 
74
87
    virtual bool        read (char c[/*n*/], int n) = 0;
 
88
    
 
89
    
 
90
    //---------------------------------------------------
 
91
    // Read from a memory-mapped stream:
 
92
    //
 
93
    // readMemoryMapped(n) reads n bytes from the stream
 
94
    // and returns a pointer to the first byte.  The
 
95
    // returned pointer remains valid until the stream
 
96
    // is closed.  If there are less than n byte left to
 
97
    // read in the stream or if the stream is not memory-
 
98
    // mapped, readMemoryMapped(n) throws an exception.  
 
99
    //---------------------------------------------------
 
100
 
 
101
    virtual char *      readMemoryMapped (int n);
75
102
 
76
103
 
77
104
    //--------------------------------------------------------
130
157
    //-----------
131
158
 
132
159
    virtual ~OStream ();
133
 
 
 
160
  
134
161
 
135
162
    //----------------------------------------------------------
136
163
    // Write to the stream: