Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
put
Method · 0.95
merge
Method · 0.95
Calls
3
len
Method · 0.95
cap
Method · 0.95
expand
Method · 0.95
Tested by
no test coverage detected