Constructs and writes indices.
Indices should be unsigned.