To get a pointer to an lcis data buffer, you use localitemdata():
buf = LocalItemData (lci);
You may read and write the buffer to your heart's content; it is yours.
You should not, however, write beyond the end of the buffer. The size of
the buffer is what you asked for when you called alloclocalitem().