public static KadPacket getPublishReqPacket(Int128 targetID,
ClientID clientID, TagList tagList) {
ByteBuffer tags = tagsToByteBuffer(tagList);
KadPacket packet = new KadPacket(KADEMLIA_PUBLISH_REQ, 16 + 2 + 16 + 2
+ tags.capacity());
packet.insertData(targetID.toByteArray());
packet.insertData((short) 1);
packet.insertData(clientID.toByteArray());
packet.insertData(intToByte(tagList.size()));
tags.position(0);