pub fn handle_encode(tag: u16, id: ChunkId) -> Option<i64>Expand description
Pack (tag, id) into the opaque i64 handle GDScript sees. Returns None
for a chunk too deep to encode (depth > MAX_HANDLE_DEPTH) — such a chunk is
simply never handed to an async builder.
Total width is 40 + 5 + 5 + 12 = 62 bits, so the result is always a
non-negative i64 (GDScript ints are signed).