Coverage Report

Created: 2025-07-18 08:04

/src/vlc/contrib/x86_64-unknown-linux-gnu/include/ebml/EbmlVoid.h
Line
Count
Source (jump to first uncovered line)
1
/****************************************************************************
2
** libebml : parse EBML files, see http://embl.sourceforge.net/
3
**
4
** <file/class description>
5
**
6
** Copyright (C) 2002-2010 Steve Lhomme.  All rights reserved.
7
**
8
** This file is part of libebml.
9
**
10
** This library is free software; you can redistribute it and/or
11
** modify it under the terms of the GNU Lesser General Public
12
** License as published by the Free Software Foundation; either
13
** version 2.1 of the License, or (at your option) any later version.
14
**
15
** This library is distributed in the hope that it will be useful,
16
** but WITHOUT ANY WARRANTY; without even the implied warranty of
17
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18
** Lesser General Public License for more details.
19
**
20
** You should have received a copy of the GNU Lesser General Public
21
** License along with this library; if not, write to the Free Software
22
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
23
**
24
** See http://www.gnu.org/licenses/lgpl-2.1.html for LGPL licensing information.
25
**
26
** Contact license@matroska.org if any conditions of this licensing are
27
** not clear to you.
28
**
29
**********************************************************************/
30
31
/*!
32
  \file
33
  \version \$Id: EbmlVoid.h 1079 2005-03-03 13:18:14Z robux4 $
34
  \author Steve Lhomme     <robux4 @ users.sf.net>
35
*/
36
#ifndef LIBEBML_VOID_H
37
#define LIBEBML_VOID_H
38
39
#include "EbmlTypes.h"
40
#include "EbmlBinary.h"
41
42
namespace libebml {
43
44
DECLARE_EBML_BINARY(EbmlVoid)
45
  public:
46
    EbmlVoid(const EbmlVoid & ElementToClone) = default;
47
48
    /*!
49
      \brief Set the size of the data (not the complete size of the element)
50
    */
51
0
    void SetSize(uint64 aSize) {SetSize_(aSize);}
52
53
    /*!
54
      \note overwrite to write fake data
55
    */
56
    filepos_t RenderData(IOCallback & output, bool bForceRender, bool bWithDefault = false) override;
57
58
    /*!
59
      \brief Replace the void element content (written) with this one
60
    */
61
    uint64 ReplaceWith(EbmlElement & EltToReplaceWith, IOCallback & output, bool ComeBackAfterward = true, bool bWithDefault = false);
62
63
    /*!
64
      \brief Void the content of an element
65
    */
66
    uint64 Overwrite(const EbmlElement & EltToVoid, IOCallback & output, bool ComeBackAfterward = true, bool bWithDefault = false);
67
68
        EBML_CONCRETE_CLASS(EbmlVoid)
69
};
70
71
} // namespace libebml
72
73
#endif // LIBEBML_VOID_H