File: memorybuf.f

package info (click to toggle)
bobcat 6.11.00-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,292 kB
  • sloc: cpp: 21,370; fortran: 6,507; makefile: 2,787; sh: 724; perl: 401; ansic: 26
file content (45 lines) | stat: -rw-r--r-- 881 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45

inline MemoryBuf::MemoryBuf(std::string const &bufSize,
                            std::ios::openmode openMode, size_t access)
:
    MemoryBuf(bufSize, false, openMode, access)
{}


inline MemoryBuf::MemoryBuf(int id, std::ios::openmode openMode)
:
    MemoryBuf(id, false, openMode)
{}

inline int MemoryBuf::id() const
{
    return d_bridge.id();
}

inline void MemoryBuf::info(std::ostream &out) const
{
    d_bridge.info(out);
}

    // by X
inline std::streamsize MemoryBuf::maxEnd() const
{
    return d_bridge.maxEnd();
}

    // by memorystream/memorystream.f (setErase)
inline void MemoryBuf::setErase(bool erase)
{
    d_bridge.setErase(erase);
}

inline void MemoryBuf::truncate(std::streamsize size)
{
    d_bridge.truncate(size);
}

    // by sharedstream/writtenuntil.f
inline std::streamsize MemoryBuf::writtenUntil() const
{
    return d_bridge.writtenUntil();
}