• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PredatorCZ / RevilLib / 162

17 Jun 2025 03:12PM UTC coverage: 11.187% (-0.06%) from 11.245%
162

push

github

PredatorCZ
smaller bugfixes

2 of 28 new or added lines in 4 files covered. (7.14%)

428 existing lines in 3 files now uncovered.

757 of 6767 relevant lines covered (11.19%)

6698.68 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/reng/asset.cpp
1
/*  Revil Format Library
2
    Copyright(C) 2017-2023 Lukas Cone
3

4
    This program is free software : you can redistribute it and / or modify
5
    it under the terms of the GNU General Public License as published by
6
    the Free Software Foundation, either version 3 of the License, or
7
    (at your option) any later version.
8

9
    This program is distributed in the hope that it will be useful,
10
    but WITHOUT ANY WARRANTY; without even the implied warranty of
11
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
12
    GNU General Public License for more details.
13

14
    You should have received a copy of the GNU General Public License
15
    along with this program.If not, see <https://www.gnu.org/licenses/>.
16
*/
17

18
#include "asset.hpp"
19
#include "spike/except.hpp"
20
#include "spike/io/binreader.hpp"
21
#include <map>
22

23
REAsset::~REAsset() = default;
×
24
REAsset::REAsset() = default;
×
25
REAsset::REAsset(revil::REAsset &&) = default;
×
26

27
void REAsset::Load(const std::string &fileName) {
×
28
  BinReader rd(fileName);
×
29
  return Load(rd);
×
30
}
31

32
void REAsset::Load(BinReaderRef rd) {
×
33
  rd.Push();
34
  REAssetBase base;
35
  rd.Read(base);
36
  rd.Pop();
37

38
  i = REAssetImpl::Create(base);
×
39

40
  i->Load(rd);
×
41
}
42

43
void REAssetImpl::Load(BinReaderRef rd) {
×
44
  const size_t fleSize = rd.GetSize();
×
45
  rd.ReadContainer(internalBuffer, fleSize);
×
NEW
46
  buffer = internalBuffer.data();
×
47
  std::vector<void *> ptrStore;
×
48
  Fixup(ptrStore);
×
49
}
50

51
void REAssetImpl::Assign(REAssetBase *data) {
×
52
  char *rawData = reinterpret_cast<char *>(data);
53
  buffer = rawData;
×
54
  Build();
×
55
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc