method

pack

Importance_0
v2_1_10 - Show latest stable - 0 notes - Class: Packer
pack(ary) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File ext/fiddle/lib/fiddle/pack.rb, line 78
    def pack(ary)
      case SIZEOF_VOIDP
      when SIZEOF_LONG
        ary.pack(@template)
      when SIZEOF_LONG_LONG
        ary.pack(@template)
      else
        raise(RuntimeError, "sizeof(void*)?")
      end
    end
Register or log in to add new notes.