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