if (peers.isEmpty()) {return;}
byte[] raw_peers = new byte[peers.size() * peer_byte_size];
byte[] peer_flags = (include_flags) ? new byte[peers.size()] : null;
PeerItem peer;
for (int i=0; i<peers.size(); i++ ) {
peer = (PeerItem)peers.get(i);
byte[] serialised_peer = peer.getSerialization();
if (serialised_peer.length != peer_byte_size) {System.out.println("> " + serialised_peer.length + ":" + peer_byte_size);}
System.arraycopy(serialised_peer, 0, raw_peers, i * peer_byte_size, peer_byte_size);
if (peer_flags != null && NetworkManager.getCryptoRequired(peer.getCryptoLevel())) {
peer_flags[i] |= 0x01; // Encrypted connection.
}
// 0x02 indicates if the peer is a seed, but that's difficult to determine
// so we'll leave it.
} // end for