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