Home
last modified time | relevance | path

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

/external/grpc-grpc-java/core/src/main/java/io/grpc/
DStatus.java305 private static Status fromCodeValue(byte[] asciiCodeValue) { in fromCodeValue() argument
306 if (asciiCodeValue.length == 1 && asciiCodeValue[0] == '0') { in fromCodeValue()
309 return fromCodeValueSlow(asciiCodeValue); in fromCodeValue()
313 private static Status fromCodeValueSlow(byte[] asciiCodeValue) { in fromCodeValueSlow() argument
316 switch (asciiCodeValue.length) { in fromCodeValueSlow()
318 if (asciiCodeValue[index] < '0' || asciiCodeValue[index] > '9') { in fromCodeValueSlow()
321 codeValue += (asciiCodeValue[index++] - '0') * 10; in fromCodeValueSlow()
324 if (asciiCodeValue[index] < '0' || asciiCodeValue[index] > '9') { in fromCodeValueSlow()
327 codeValue += asciiCodeValue[index] - '0'; in fromCodeValueSlow()
335 return UNKNOWN.withDescription("Unknown code " + new String(asciiCodeValue, US_ASCII)); in fromCodeValueSlow()