Coverage Report

Created: 2026-02-26 07:48

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/openexr/src/lib/OpenEXR/ImfIO.cpp
Line
Count
Source
1
//
2
// SPDX-License-Identifier: BSD-3-Clause
3
// Copyright (c) Contributors to the OpenEXR Project.
4
//
5
6
//-----------------------------------------------------------------------------
7
//
8
//  Low-level file input and output for OpenEXR.
9
//
10
//-----------------------------------------------------------------------------
11
12
#include "Iex.h"
13
#include "ImfNamespace.h"
14
#include <ImfIO.h>
15
16
OPENEXR_IMF_INTERNAL_NAMESPACE_SOURCE_ENTER
17
18
803
IStream::IStream (const char fileName[]) : _fileName (fileName)
19
803
{
20
    // empty
21
803
}
22
23
IStream::~IStream ()
24
803
{
25
    // empty
26
803
}
27
28
bool
29
IStream::isMemoryMapped () const
30
0
{
31
0
    return false;
32
0
}
33
34
char*
35
IStream::readMemoryMapped (int n)
36
0
{
37
0
    throw IEX_NAMESPACE::InputExc ("Attempt to perform a memory-mapped read "
38
0
                                   "on a file that is not memory mapped.");
39
0
}
40
41
void
42
IStream::clear ()
43
0
{
44
    // empty
45
0
}
46
47
const char*
48
IStream::fileName () const
49
0
{
50
0
    return _fileName.c_str ();
51
0
}
52
53
int64_t
54
IStream::size ()
55
0
{
56
0
    return -1;
57
0
}
58
59
bool
60
IStream::isStatelessRead () const
61
0
{
62
0
    return false;
63
0
}
64
65
int64_t
66
IStream::read (void *, uint64_t, uint64_t)
67
0
{
68
0
    throw IEX_NAMESPACE::InputExc ("Attempt to perform a stateless read "
69
0
                                   "on a stream without support.");
70
0
}
71
72
0
OStream::OStream (const char fileName[]) : _fileName (fileName)
73
0
{
74
    // empty
75
0
}
76
77
OStream::~OStream ()
78
0
{
79
    // empty
80
0
}
81
82
const char*
83
OStream::fileName () const
84
0
{
85
0
    return _fileName.c_str ();
86
0
}
87
88
OPENEXR_IMF_INTERNAL_NAMESPACE_SOURCE_EXIT