MCPcopy Create free account
hub / github.com/e2wugui/zeze / decode

Method decode

ZezeJava/ZezeJava/src/main/java/Zeze/Net/Protocol.java:170–179  ·  view source on GitHub ↗
(@NotNull IByteBuffer bb)

Source from the content-addressed store, hash-verified

168 }
169
170 @Override
171 public void decode(@NotNull IByteBuffer bb) {
172 var header = bb.ReadUInt();
173 if ((header & FamilyClass.FamilyClassMask) != FamilyClass.Protocol) {
174 throw new IllegalStateException("invalid header(" + header + ") for decoding protocol: "
175 + getClass().getName());
176 }
177 resultCode = (header & FamilyClass.BitResultCode) != 0 ? bb.ReadLong() : 0;
178 Argument.decode(bb);
179 }
180
181 @Override
182 public int preAllocSize() {

Callers 6

onBinaryMethod · 0.95
ProcessProxyRequestMethod · 0.95
sendMethod · 0.95
ProcessProxyRequestMethod · 0.95
sendMethod · 0.95

Calls 15

makeTypeIdMethod · 0.95
ToIntMethod · 0.95
canLogProtocolMethod · 0.95
logMethod · 0.95
formatMethod · 0.80
checkThrottleMethod · 0.80
ReadUIntMethod · 0.65
getNameMethod · 0.65
ReadLongMethod · 0.65
decodeMethod · 0.65

Tested by 1

onBinaryMethod · 0.76