/** * Pops a header from a message. Creates a new Header from the values contained by the message. * * @param message message that contains the info to build the header * @return a header builted from the values of contained by the message */ public static SEQHeader pop(Message message) { SEQHeader header = new SEQHeader(); header.order = message.popLong(); header.sn = message.popLong(); header.id = message.popInt(); return header; }