MCPcopy Create free account
hub / github.com/AngusJohnson/Clipper2 / SetHayStack

Method SetHayStack

CPP/Utils/ClipFileSave.cpp:31–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 bool case_sensitive_;
30
31 void SetHayStack(std::ifstream& stream)
32 {
33 ClearHaystack();
34 stream.seekg(0, ios::end);
35 haystack_len = static_cast<size_t>(stream.tellg());
36 stream.seekg(0, ios::beg);
37 haystack_ = new char[haystack_len];
38 stream.read(haystack_, haystack_len);
39 current = haystack_;
40 end = current + haystack_len;
41 }
42
43 void SetHayStack(const char* buffer, size_t buff_len)
44 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected