public virtual void write_pid(System.String node, int id, int serial, int creation) { this.write1(OtpExternal.pidTag); this.write_atom(node); this.write4BE(id & 0x7fff); // 15 bits this.write4BE(serial & 0x7); // 3 bits this.write1(creation & 0x3); // 2 bits }