MCPcopy Create free account
hub / github.com/grpc/grpc-java / maybeExpand

Method maybeExpand

api/src/main/java/io/grpc/Metadata.java:355–359  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

353 }
354
355 private void maybeExpand() {
356 if (len() == 0 || len() == cap()) {
357 expand(Math.max(len() * 2, 8));
358 }
359 }
360
361 // Expands to exactly the desired capacity.
362 private void expand(int newCapacity) {

Callers 2

putMethod · 0.95
mergeMethod · 0.95

Calls 3

lenMethod · 0.95
capMethod · 0.95
expandMethod · 0.95

Tested by

no test coverage detected