MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / Read

Method Read

external/capsimage/src/Core/DiskFile.cpp:108–122  ·  view source on GitHub ↗

read file, return number of bytes read

Source from the content-addressed store, hash-verified

106
107// read file, return number of bytes read
108size_t CDiskFile::Read(void *buf, size_t size)
109{
110 // 0 bytes read if file is not open
111 if (!dfile)
112 return 0;
113
114 // read/write change
115 if (lastop != 0) {
116 fseek(dfile, 0, SEEK_CUR);
117 lastop=0;
118 }
119
120 // read the file
121 return fread(buf, 1, size, dfile);
122}
123
124// write file, return number of bytes written
125size_t CDiskFile::Write(void *buf, size_t size)

Callers 14

SeqInStream_Read2Function · 0.45
SeqInStream_ReadByteFunction · 0.45
LookInStream_Read2Function · 0.45
LookToRead_Look_ExactFunction · 0.45
LookToRead_ReadFunction · 0.45
SecToRead_ReadFunction · 0.45
Ppmd7z_RangeDec_InitFunction · 0.45
Range_NormalizeFunction · 0.45
FullReadFunction · 0.45
SeqCheckInStream_ReadFunction · 0.45
SeqInFilter_ReadFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected