Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate out Input-dependent functions by session, for variable length structs #290

Merged
merged 3 commits into from
Jul 31, 2020

Conversation

badrishc
Copy link
Contributor

  • Allow users to specify var-len struct settings that are Input-dependent, on a per-session basis, using a new IVariableLengthStruct<T, Input>.
  • Remove Input-based methods from IVariableLengthStruct interface.
  • Provide default implementation for the Input-dependent functions
    GetLenth(Input) -> GetAverageLength()
    GetLength(Value, Input) -> GetLength(Value)

Fix #289

badrishc added 2 commits July 28, 2020 11:23
…dent, on a per-session basis, using a new IVariableLengthStruct<T, Input>.

* Remove Input-based methods from IVariableLengthStruct<T> interface.
* Provide default implementation for the Input-dependent functions
GetLenth(Input) -> GetAverageLength()
GetLength(Value, Input) -> GetLength(Value)
@badrishc badrishc merged commit 6c5e7db into master Jul 31, 2020
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.

[C#] Input-specific functions in IVariableLengthStruct
2 participants