itinero / reminiscence

A library for cross-platform memory mapping.
MIT License
9 stars 6 forks source link

Refactor accessors #17

Open xivk opened 5 years ago

xivk commented 5 years ago

Refactor the accessors or add another concept next to them. We need to be able to create a reader/write per type without giving it a stream.

This to support the copy-to operation for example:

https://github.com/itinero/reminiscence/blob/develop/src/Reminiscence/Extensions.cs#L41

With the current API we need to create an accessor with a stream that is never used.