MCPcopy Index your code
hub / github.com/cSploit/android / append

Method append

cSploit/src/org/csploit/android/net/ByteBuffer.java:62–84  ·  view source on GitHub ↗
(byte[] buffer, int length)

Source from the content-addressed store, hash-verified

60 }
61
62 public void append(byte[] buffer, int length){
63 byte[] chunk = Arrays.copyOfRange(buffer, 0, length),
64 reallcd;
65 int i, j;
66
67 mCharsetDetector.handleData(buffer, 0, length);
68
69 if(mBuffer == null)
70 mBuffer = chunk;
71
72 else{
73 reallcd = new byte[mBuffer.length + length];
74
75 for(i = 0; i < mBuffer.length; i++)
76 reallcd[i] = mBuffer[i];
77
78 for(j = 0; j < length; i++, j++)
79 reallcd[i] = chunk[j];
80
81 mBuffer = reallcd;
82 }
83
84 }
85
86 public int indexOf(byte[] pattern, int start){
87 int i, j, plen = pattern.length, stop = mBuffer.length - plen;

Callers 15

replaceMethod · 0.95
onNewLineMethod · 0.80
dissectMethod · 0.80
dnsSpoofMethod · 0.80
sniffMethod · 0.80
saveSessionMethod · 0.80
onStartMethod · 0.80
onNewLineMethod · 0.80
onStderrMethod · 0.80
onEndMethod · 0.80
digest2stringMethod · 0.80
serializeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected