public void unwrap(SMPPPacket packet) throws BufferException { Log.log("OptionalParameter.unwrap : unwrap elements !", 0x100800000000000L); tag = packet.getShort(); length = packet.getShort(); value = packet.getBytes(length); dump(0x800000000000L); }
public void wrap(SMPPPacket packet) throws BufferException { Log.log("OptionalParameter.wrap : wrap elements !", 0x100800000000000L); dump(0x800000000000L); packet.addShort((short) (tag & 0xffff)); packet.addShort((short) (length & 0xffff)); packet.addBytes(value); }