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); }
void PacketClientStatus::read(PacketBuffer &buffer) { buffer.getVarInt(actionId); }