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

Feature/null spdr creation #9

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

uucidl
Copy link
Owner

@uucidl uucidl commented Jun 12, 2014

Allow creation of null spdr contexts. This is not for
performance's sake and rather to provide a convenient mechanism
for not allocating anything or in case you fail to initialize the
library.

uucidl added 3 commits June 12, 2014 22:55
when the passed buffer is above the minimum, we return a context
that can still be operated with. It won't be able to record events,
and will return a capacity of zero without crashing.

When the passed buffer is below the core minimum a NULL context is
returned.
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.

1 participant