MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / memsetAtPos

Method memsetAtPos

rEFIt_UEFI/cpp_foundation/XBuffer.h:125–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123
124 template<typename IntegralType1, typename IntegralType2, enable_if( is_integral(IntegralType1) && is_integral(IntegralType2) )>
125 void memsetAtPos(IntegralType1 pos, unsigned char c, IntegralType2 count) {
126 if (pos < 0) panic("XBuffer::memset : pos < 0. System halted\n");
127 if (count < 0) panic("XBuffer::memset : count < 0. System halted\n");
128 if ( (size_t)pos + (unsigned_type(IntegralType2))count >= size() ) setSize((size_t)pos + (unsigned_type(IntegralType2))count);
129 ::memset(_WData, c, count);
130 }
131
132 void ncpy(const void *buf, size_t len);
133 // Cat

Callers 1

serializeMethod · 0.80

Calls 2

panicFunction · 0.50
memsetFunction · 0.50

Tested by

no test coverage detected