`openarray` as value don't work at the moment [https://github.com/nim-lang/RFCs/issues/178](https://github.com/nim-lang/RFCs/issues/178)
You can store as `ptr UncheckedArray[byte]` \+ len. On use either you use directly like you would index a pointer in C or if you interface with Nim libraries there is a zero-cost transformation to openarray via `toOpenArray(ptr UncheckedArray[T], start, stopInclusive)`