@exported def index(inp: bytes, idx: i32) -> i32: return inp[idx] @exported def length(inp: bytes) -> i32: return len(inp)