Home
last modified time | relevance | path

Searched refs:codeValue (Results 1 – 1 of 1) sorted by relevance

/external/grpc-grpc-java/core/src/main/java/io/grpc/
DStatus.java297 public static Status fromCodeValue(int codeValue) { in fromCodeValue() argument
298 if (codeValue < 0 || codeValue > STATUS_LIST.size()) { in fromCodeValue()
299 return UNKNOWN.withDescription("Unknown code " + codeValue); in fromCodeValue()
301 return STATUS_LIST.get(codeValue); in fromCodeValue()
315 int codeValue = 0; in fromCodeValueSlow() local
321 codeValue += (asciiCodeValue[index++] - '0') * 10; in fromCodeValueSlow()
327 codeValue += asciiCodeValue[index] - '0'; in fromCodeValueSlow()
328 if (codeValue < STATUS_LIST.size()) { in fromCodeValueSlow()
329 return STATUS_LIST.get(codeValue); in fromCodeValueSlow()