Pointer-based impleentacion for spans