### Home Classes Methods

### In Files

- lib/ffi/struct.rb

### Parent

Field

### Methods

- #get
- #put

### Files

- History.txt
- README.rdoc

### Class/Module Index

Quicksearch

- FFI
- FFI::AutoPointer
- FFI::AutoPointer::CallableReleaser
- FFI::AutoPointer::DefaultReleaser
- FFI::AutoPointer::Releaser
- FFI::ConstGenerator
- FFI::ConstGenerator::Constant
- FFI::Enum
- FFI::Enums
- FFI::Generator
- FFI::Generator::Task
- FFI::IO
- FFI::Library
- FFI::ManagedStruct
- FFI::NotFoundError
- FFI::Platform
- FFI::PlatformError
- FFI::Pointer
- FFI::StrPtrConverter
- FFI::Struct
- FFI::Struct::ManagedStructConverter
- FFI::StructGenerator
- FFI::StructGenerator::Field
- FFI::StructLayout
- FFI::StructLayout::Enum
- FFI::StructLayout::InnerStruct
- FFI::StructLayout::Mapped
- FFI::StructLayoutBuilder
- FFI::TypesGenerator
- FFI::Union
- FFI::VariadicInvoker

No matching classes.

# FFI::StructLayout::Enum

### Public Instance Methods

get(ptr) click to toggle source

    # File lib/ffi/struct.rb, line 40
    def get(ptr)
      type.find(ptr.get_int(offset))
    end

put(ptr, value) click to toggle source

    # File lib/ffi/struct.rb, line 44
    def put(ptr, value)
      ptr.put_int(offset, type.find(value))
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.