code: public void write_pid(final String node, final int id, final int serial,
              final int creation) {
  	write1(OtpExternal.pidTag);
  	write_atom(node);
  	write4BE(id & 0x7fff); // 15 bits
  	write4BE(serial & 0x1fff); // 13 bits
  	write1(creation & 0x3); // 2 bits
      }
docs: Write an Erlang PID to the stream.
  
  @param node
  the nodename.
  
  @param id
  an arbitrary number. Only the low order 15 bits will be used.
  
  @param serial
  another arbitrary number. Only the low order 13 bits will be
  used.
  
  @param creation
  yet another arbitrary number. Only the low order 2 bits will
  be used.