MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / assign

Method assign

extra/yassl/src/buffer.cpp:208–219  ·  view source on GitHub ↗

write function, should use at/near construction

Source from the content-addressed store, hash-verified

206
207// write function, should use at/near construction
208void input_buffer::assign(const byte* t, uint s)
209{
210 if (t && error_ == 0 && check(current_, get_capacity()) == 0) {
211 add_size(s);
212 if (error_ == 0) {
213 memcpy(&buffer_[current_], t, s);
214 return; // success
215 }
216 }
217
218 error_ = -1;
219}
220
221
222// use read to query input, adjusts current

Callers 5

ValidateMethod · 0.45
SetPrivateKeyMethod · 0.45
SetPeerKeyMethod · 0.45
DoProcessReplyFunction · 0.45
BN_bin2bnFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected