Ejemplo n.º 1
0
void PacketEncryptionResponse::read(PacketBuffer &buffer) {
    varint_t secretLength;
    buffer.getVarInt(secretLength);
    sharedSecret = ubytes_t(secretLength);
    buffer.getUBytes(sharedSecret);
    varint_t tokenLength;
    buffer.getVarInt(tokenLength);
    verifyToken = ubytes_t(tokenLength);
    buffer.getUBytes(verifyToken);
}
Ejemplo n.º 2
0
void PacketClientStatus::read(PacketBuffer &buffer) {
    buffer.getVarInt(actionId);
}