MCPcopy Create free account
hub / github.com/M66B/FairEmail / readLong

Method readLong

app/src/main/java/com/sun/mail/iap/Response.java:360–375  ·  view source on GitHub ↗

Extract a long number, starting at the current position. Updates the internal index to beyond the number. Returns -1 if a long number was not found. @return a long

()

Source from the content-addressed store, hash-verified

358 * @return a long
359 */
360 public long readLong() {
361 // Skip leading spaces
362 skipSpaces();
363
364 int start = index;
365 while (index < size && Character.isDigit((char)buffer[index]))
366 index++;
367
368 if (index > start) {
369 try {
370 return ASCIIUtility.parseLong(buffer, start, index);
371 } catch (NumberFormatException nex) { }
372 }
373
374 return -1;
375 }
376
377 /**
378 * Extract a NSTRING, starting at the current position. Return it as

Callers 14

getCopyUIDMethod · 0.95
createFromParcelMethod · 0.80
AutocryptPeerUpdateMethod · 0.80
MessageTargetMethod · 0.80
parseItemMethod · 0.80
handleResponseMethod · 0.80
MODSEQMethod · 0.80
RFC822SIZEMethod · 0.80
getAppendUIDMethod · 0.80
parseQuotaMethod · 0.80
StatusMethod · 0.80

Calls 2

skipSpacesMethod · 0.95
parseLongMethod · 0.95

Tested by

no test coverage detected