MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / READ_FONT_DATA

Function READ_FONT_DATA

2dlib/font.cpp:160–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158inline uint8_t READ_FONT_BYTE(FONTFILE ffile) { return (uint8_t)cf_ReadByte(ffile); }
159
160inline int READ_FONT_DATA(FONTFILE ffile, void *buf, int size, int nelem) {
161 int i;
162
163 i = cf_ReadBytes((uint8_t *)buf, size * nelem, ffile);
164
165 ASSERT(i == (size * nelem));
166
167 return i;
168}
169
170inline FONTFILE OPEN_FONT(char *filename, bool &success) {
171 FONTFILE fp;

Callers 1

loadMethod · 0.70

Calls 1

cf_ReadBytesFunction · 0.85

Tested by

no test coverage detected