MCPcopy Create free account
hub / github.com/amule-project/amule / SetBuffer

Method SetBuffer

src/BitVector.h:147–147  ·  view source on GitHub ↗

set buffer Skip the copy when m_bytes == 0 -- after clear() that path leaves m_vector == NULL, and memcpy(NULL, src, 0) is C-standard UB even on real libcs that no-op it. Matches SetAllTrue() above.

Source from the content-addressed store, hash-verified

145 // m_vector == NULL, and memcpy(NULL, src, 0) is C-standard UB even
146 // on real libcs that no-op it. Matches SetAllTrue() above.
147 void SetBuffer(const void* src) { if (m_bytes) { memcpy(m_vector, src, m_bytes); } m_allTrue = 2; }
148
149private:
150 uint32 m_bits; // number of bits

Callers 1

ProcessItemUpdateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected