MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / get

Method get

libcppcryptfs/util/util.h:138–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136public:
137 TempBuffer(size_t len = 0) : m_len(len) {}
138 T* get(size_t len = 0)
139 {
140 if (len)
141 m_len = len;
142
143 if (m_len <= L) {
144 return m_buf;
145 } else {
146 if (m_vec.size() < m_len) {
147 try {
148 m_vec.resize(m_len);
149 } catch (const std::bad_alloc&) {
150 return nullptr;
151 }
152 }
153 return &m_vec[0];
154 }
155 }
156};
157
158HANDLE OpenTokenForCurrentProcess();

Callers 15

GetProductVersionInfoFunction · 0.45
EmeTransformFunction · 0.45
encrypt_string_gcmFunction · 0.45
decrypt_string_gcmFunction · 0.45
ReadMethod · 0.45
WriteMethod · 0.45
SetEndOfFileMethod · 0.45
pad16Function · 0.45
unicode_to_utf8Function · 0.45
utf8_to_unicodeFunction · 0.45
base64_encodeFunction · 0.45
touppercaseFunction · 0.45

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected