public virtual void write_port(System.String node, int id, int creation) { this.write1(OtpExternal.portTag); this.write_atom(node); this.write4BE(id & 0x3ffff); // 18 bits this.write1(creation & 0x3); // 2 bits }