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

Add FFI::Enum#size #383

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add FFI::Enum#size #383

wants to merge 1 commit into from

Commits on Nov 1, 2014

  1. Add FFI::Enum#size

    This allows enums to be used directly in calls to FFI::MemoryPointer.new.
    While you still can't get the enum back out, you're at least future-proofing
    your code against the (admittedly small) possibility that the type of your
    enums may change in the future (and FFI adds support for that, such as via
    mpalmer committed Nov 1, 2014
    Configuration menu
    Copy the full SHA
    543a5ab View commit details
    Browse the repository at this point in the history