MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / prepareFastSend

Method prepareFastSend

src/main/java/core/packetproxy/DuplexSync.java:51–65  ·  view source on GitHub ↗
(byte[] data)

Source from the content-addressed store, hash-verified

49 }
50
51 public byte[] prepareFastSend(byte[] data) throws Exception {
52 int accepted_length = callOnClientPacketReceived(data);
53 if (accepted_length <= 0) {
54
55 return null;
56 }
57 byte[] accepted = ArrayUtils.subarray(data, 0, accepted_length);
58
59 byte[] pass = callOnClientChunkPassThrough();
60
61 byte[] decoded = super.callOnClientChunkReceived(accepted);
62 byte[] encoded = super.callOnClientChunkSend(decoded);
63
64 return ArrayUtils.addAll(pass, encoded);
65 }
66
67 public void execFastSend(byte[] data) throws Exception {
68 out.write(data);

Callers

nothing calls this directly

Calls 5

callOnClientChunkSendMethod · 0.80
addAllMethod · 0.45

Tested by

no test coverage detected