Skip to content

Add unsafeMakePokeState.#126

Merged
mgsloan merged 1 commit intomgsloan:masterfrom
TravisWhitaker:construct-pokestate
Apr 28, 2018
Merged

Add unsafeMakePokeState.#126
mgsloan merged 1 commit intomgsloan:masterfrom
TravisWhitaker:construct-pokestate

Conversation

@TravisWhitaker
Copy link
Copy Markdown
Contributor

It's useful to be able to construct a PokeState. For example, the user might need a function like unsafeEncodeWith but with different behavior (allowing underflow, buffer initialized in a different way, etc).

@mgsloan
Copy link
Copy Markdown
Owner

mgsloan commented Apr 28, 2018

Good point, thanks!

@mgsloan mgsloan merged commit bb064cb into mgsloan:master Apr 28, 2018
mgsloan added a commit that referenced this pull request Apr 28, 2018
@mgsloan
Copy link
Copy Markdown
Owner

mgsloan commented Apr 28, 2018

I've added unsafeMakePeekState for uniformity, and changed it so that the interface does not vary depending on what flag is used. Added maybeAlignmentBufferSize as well, as the user of the API will need that info

mgsloan added a commit that referenced this pull request Apr 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants