MCPcopy Create free account
hub / github.com/ebarlas/microhttp / next

Method next

src/main/java/org/microhttp/ByteTokenizer.java:42–49  ·  view source on GitHub ↗
(int length)

Source from the content-addressed store, hash-verified

40 }
41
42 byte[] next(int length) {
43 if (size - position < length) {
44 return null;
45 }
46 byte[] result = Arrays.copyOfRange(array, position, position + length);
47 position += length;
48 return result;
49 }
50
51 byte[] next(byte[] delimiter) {
52 int index = indexOf(delimiter);

Callers 8

compactMethod · 0.95
noBytesMethod · 0.95
nextWithLengthMethod · 0.95
nextWithDelimiterMethod · 0.95
StateEnum · 0.80
expiredMethod · 0.80
doRunMethod · 0.80
doStartMethod · 0.80

Calls 1

indexOfMethod · 0.95

Tested by 4

compactMethod · 0.76
noBytesMethod · 0.76
nextWithLengthMethod · 0.76
nextWithDelimiterMethod · 0.76