MCPcopy Create free account
hub / github.com/TheRealMJP/BakingLab / ReadString

Function ReadString

SampleFramework11/v1.02/TinyEXR.cpp:6726–6736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6724// #define IMF_B44A_COMPRESSION 7
6725
6726const char *ReadString(std::string &s, const char *ptr) {
6727 // Read untile NULL(\0).
6728 const char *p = ptr;
6729 const char *q = ptr;
6730 while ((*q) != 0)
6731 q++;
6732
6733 s = std::string(p, q);
6734
6735 return q + 1; // skip '\0'
6736}
6737
6738const char *ReadAttribute(std::string &name, std::string &ty,
6739 std::vector<unsigned char> &data, const char *ptr) {

Callers 2

ReadAttributeFunction · 0.85
ReadChannelInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected