WorldPacket packet; uint32_t guidMask = packet.ReadGuidMask(); if (guidMask & 0x01) { // GUID flag 1 is set } if (guidMask & 0x02) { // GUID flag 2 is set }
WorldPacket packet; uint32_t guidMask1 = packet.ReadGuidMask(); uint32_t guidMask2 = packet.ReadGuidMask();In this example, the code reads two GUID masks from a WorldPacket and stores them in separate uint32_t variables. These code examples suggest that ReadGuidMask is a function in the WorldPacket library.