MCPcopy
hub / github.com/alibaba/druid / initBuff

Method initBuff

core/src/main/java/com/alibaba/druid/sql/parser/Lexer.java:165–175  ·  view source on GitHub ↗
(int size)

Source from the content-addressed store, hash-verified

163 }
164
165 protected void initBuff(int size) {
166 if (buf == null) {
167 if (size < 32) {
168 buf = new char[32];
169 } else {
170 buf = new char[size + 32];
171 }
172 } else if (buf.length < size) {
173 buf = Arrays.copyOf(buf, size);
174 }
175 }
176
177 public void arraycopy(int srcPos, char[] dest, int destPos, int length) {
178 text.getChars(srcPos, srcPos + length, dest, destPos);

Callers 11

scanStringMethod · 0.95
scanString2Method · 0.95
scanString2_dMethod · 0.95
scanAliasMethod · 0.95
scanAliasMethod · 0.80
scanStringMethod · 0.80
scanStringMethod · 0.80
scanStringMethod · 0.80
scanIdentifierMethod · 0.80
scanStringMethod · 0.80
scanStringMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected