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

Function ReadString

SampleFramework12/v1.00/TinyEXR.cpp:6727–6737  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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