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

Method add_size

extra/yassl/src/buffer.cpp:108–114  ·  view source on GitHub ↗

after a raw write user can set NEW_YS size if you know the size before the write use assign()

Source from the content-addressed store, hash-verified

106// after a raw write user can set NEW_YS size
107// if you know the size before the write use assign()
108void input_buffer::add_size(uint i)
109{
110 if (error_ == 0 && check(size_ + i-1, get_capacity()) == 0)
111 size_ += i;
112 else
113 error_ = -1;
114}
115
116
117uint input_buffer::get_capacity() const

Callers 7

cipherFinishedFunction · 0.80
buildMessageFunction · 0.80
DoProcessReplyFunction · 0.80
readMethod · 0.80
ProcessMethod · 0.80
CompressFunction · 0.80
DeCompressFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected