MCPcopy Create free account
hub / github.com/ElementsProject/elements / ignore

Method ignore

src/streams.h:537–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535 }
536
537 void ignore(size_t nSize)
538 {
539 if (!file)
540 throw std::ios_base::failure("CAutoFile::ignore: file handle is nullptr");
541 unsigned char data[4096];
542 while (nSize > 0) {
543 size_t nNow = std::min<size_t>(nSize, sizeof(data));
544 if (fread(data, 1, nNow, file) != nNow)
545 throw std::ios_base::failure(feof(file) ? "CAutoFile::ignore: end of file" : "CAutoFile::read: fread failed");
546 nSize -= nNow;
547 }
548 }
549
550 void write(Span<const std::byte> src)
551 {

Callers 12

UnserializeV2StreamMethod · 0.45
ProcessMessageMethod · 0.45
ignoreMethod · 0.45
UnserMethod · 0.45
UnserializeMethod · 0.45
FUZZ_TARGETFunction · 0.45
closeEventMethod · 0.45
closeEventMethod · 0.45
keyPressEventMethod · 0.45
changeEventMethod · 0.45
closeEventMethod · 0.45
GetFileSizeFunction · 0.45

Calls

no outgoing calls

Tested by 1

FUZZ_TARGETFunction · 0.36